Learning Shiny

Make the most of R’s dynamic capabilities and implement web applications with Shiny

Learning Shiny

Hernán G. Resnizky

2 customer reviews
Make the most of R’s dynamic capabilities and implement web applications with Shiny
Mapt Subscription
FREE
$29.99/m after trial
eBook
$22.40
RRP $31.99
Save 29%
Print + eBook
$39.99
RRP $39.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$22.40
$39.99
$29.99p/m after trial
RRP $31.99
RRP $39.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781785280900
Paperback246 pages

Book Description

R is nowadays one of the most used tools in data science. However, along with Shiny, it is also gaining territory in the web application world, due to its simplicity and flexibility. Shiny is a framework that enables the creation of interactive visualizations written entirely in R and can be displayed in almost any ordinary web browser. It is a package from RStudio, which is an IDE for R.

From the fundamentals of R to the administration of multi-concurrent, fully customized web applications, this book explains how to achieve your desired web application in an easy and gradual way.

You will start by learning about the fundamentals of R, and will move on to looking at simple and practical examples. These examples will enable you to grasp many useful tools that will assist you in solving the usual problems that can be faced when developing data visualizations. You will then walk through the integration of Shiny with R in general and view the different visualization possibilities out there. Finally, you will put your skills to the test and create your first web application!

Table of Contents

Chapter 1: Introducing R, RStudio, and Shiny
About R
About RStudio
About Shiny
Summary
Chapter 2: First Steps towards Programming in R
Object-oriented programming concepts
Variables in R
Classes in depth
Element selection
Control structures in R
Reading data
Summary
Chapter 3: An Introduction to Data Processing in R
Sorting elements
Basic summary functions
grep and regular expressions
The lapply, vapply, sapply, and apply functions
plyr
The data.table package
reshape2
Summary
Chapter 4: Shiny Structure – Reactivity Concepts
Shiny as a package
An introduction to server.R and UI.R
The concept of reactivity
Reactive independent processes within an application
An introduction to global.R
Running a Shiny web application
An overview of simple examples
Summary
Chapter 5: Shiny in Depth – A Deep Dive into Shiny's World
UI.R
Optimal usage of server.R and global.R
Shiny options
Summary
Chapter 6: Using R's Visualization Alternatives in Shiny
The graphics package
Plotting options
Legends
Plotting a fully customized plot with the graphics package
Including a plot in a Shiny application
A walk around the googleVis package
ggplot2 – first steps
Summary
Chapter 7: Advanced Functions in Shiny
The validate() function
The isolate() function
The observe() function
The reactiveValues() function
Input updates
Summary
Chapter 8: Shiny and HTML/JavaScript
The www directory
Creating UIs from plain HTML
The use of tags in UI.R
Relating HTML/JavaScript and server.R
Summary
Chapter 9: Interactive Graphics in Shiny
Interaction possibilities within R graphics
D3.js integration
Summary
Chapter 10: Sharing Applications
runGist/runGitHub/runUrl
shinyapps.io
Summary
Chapter 11: From White Paper to a Full Application
Problem presentation
Conceptual design
Pre-application processing
global.R coding
UI.R partial coding
server.R coding
UI.R completion
Styling
Summary
Reference

What You Will Learn

  • Comprehend many useful functions, such as lapply and apply, to process data in R
  • Write and structure different files to create a basic dashboard
  • Develop graphics in R using popular graphical libraries such as ggplot2 and GoogleVis
  • Mount a dashboard on a Linux Server
  • Integrate Shiny with non-R-native visualization, such as D3.js
  • Design and build a web application

Authors

Table of Contents

Chapter 1: Introducing R, RStudio, and Shiny
About R
About RStudio
About Shiny
Summary
Chapter 2: First Steps towards Programming in R
Object-oriented programming concepts
Variables in R
Classes in depth
Element selection
Control structures in R
Reading data
Summary
Chapter 3: An Introduction to Data Processing in R
Sorting elements
Basic summary functions
grep and regular expressions
The lapply, vapply, sapply, and apply functions
plyr
The data.table package
reshape2
Summary
Chapter 4: Shiny Structure – Reactivity Concepts
Shiny as a package
An introduction to server.R and UI.R
The concept of reactivity
Reactive independent processes within an application
An introduction to global.R
Running a Shiny web application
An overview of simple examples
Summary
Chapter 5: Shiny in Depth – A Deep Dive into Shiny's World
UI.R
Optimal usage of server.R and global.R
Shiny options
Summary
Chapter 6: Using R's Visualization Alternatives in Shiny
The graphics package
Plotting options
Legends
Plotting a fully customized plot with the graphics package
Including a plot in a Shiny application
A walk around the googleVis package
ggplot2 – first steps
Summary
Chapter 7: Advanced Functions in Shiny
The validate() function
The isolate() function
The observe() function
The reactiveValues() function
Input updates
Summary
Chapter 8: Shiny and HTML/JavaScript
The www directory
Creating UIs from plain HTML
The use of tags in UI.R
Relating HTML/JavaScript and server.R
Summary
Chapter 9: Interactive Graphics in Shiny
Interaction possibilities within R graphics
D3.js integration
Summary
Chapter 10: Sharing Applications
runGist/runGitHub/runUrl
shinyapps.io
Summary
Chapter 11: From White Paper to a Full Application
Problem presentation
Conceptual design
Pre-application processing
global.R coding
UI.R partial coding
server.R coding
UI.R completion
Styling
Summary
Reference

Book Details

ISBN 139781785280900
Paperback246 pages
Read More
From 2 reviews

Read More Reviews

Recommended for You

Learning Bayesian Models with R Book Cover
Learning Bayesian Models with R
$ 35.99
$ 25.20
Practical Data Science Cookbook Book Cover
Practical Data Science Cookbook
$ 29.99
$ 21.00
Mastering Predictive Analytics with R Book Cover
Mastering Predictive Analytics with R
$ 39.99
$ 28.00
Machine Learning with R - Second Edition Book Cover
Machine Learning with R - Second Edition
$ 43.99
$ 30.80
R for Data Science Book Cover
R for Data Science
$ 29.99
$ 21.00
Python Machine Learning Book Cover
Python Machine Learning
$ 35.99
$ 25.20