Learning Shiny

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

Learning Shiny

This ebook is included in a Mapt subscription
Hernán G. Resnizky

2 customer reviews
Make the most of R’s dynamic capabilities and implement web applications with Shiny
$31.99
$39.99
RRP $31.99
RRP $39.99
eBook
Print + eBook
Subscribe and access every Packt eBook & Video.
 
  • 4,000+ eBooks & Videos
  • 40+ 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