
Web Application Development with R Using Shiny
Beschreibung
Analyze, communicate, and design your own sophisticated and interactive web applications using the R (v 3.4) Shiny (1.1.0) package
Key Features
- Explore the power of R Shiny to make interactive web applications easily
- Create engaging user interfaces using elements such as HTML5 shiny tags and Ttabsets
- Build and deploy your interactive Shiny web application using shinyapps.io
Book Description
Web Application Development with R Using Shiny helps you become familiar with the complete R Shiny package. The book starts with a quick overview of R and its fundamentals, followed by an exploration of the fundamentals of Shiny and some of the things that it can help you do. You'll learn about the wide range of widgets and functions within Shiny and how they fit together to make an attractive and easy to use application.
Once you have understood the basics, you'll move on to studying more advanced UI features, including how to style apps in detail using the Bootstrap framework or and Shiny's inbuilt layout functions.
You'll learn about enhancing Shiny with JavaScript, ranging from adding simple interactivity with JavaScript right through to using JavaScript to enhance the reactivity between your app and the UI.
You'll learn more advanced Shiny features of Shiny, such as uploading and downloading data and reports, as well as how to interact with tables and link reactive outputs. Lastly, you'll learn how to deploy Shiny applications over the internet, as well as and how to handle storage and data persistence within Shiny applications, including the use of relational databases.
By the end of this book, you'll be ready to create responsive, interactive web applications using the complete R (v 3.4) Shiny (1.1.0) suite.
What you will learn
- Harness the power of JavaScript to customize your applications
- Build dashboards with predefined UI and layouts
- Engage your users and build better analytics using interactive plots
- Learn advanced code patterns to make your applications easy to write and maintain.
- Develop a full understanding of Shiny's UI functions to give you the power to build a wide variety of attractive applications.
- Store data and interact with databases with Shiny.
- Learn how to share your Shiny applications
- Understand reactivity at the conceptual level to build more efficient and robust apps
Who this book is for
Web Application Development with R Using Shiny is for you if you are interested in creating compelling web applications and interactive data visualization over the web using Shiny. Programming experience with R is required.
Weitere Details
Weitere Ausgaben
Inhalt
- Cover
- Title Page
- Copyright and Credits
- www.PacktPub.com
- Contributors
- Table of Contents
- Preface
- Chapter 1: Beginning R and Shiny
- Installing R
- The R console
- Code editors and IDEs
- Learning R
- Getting help
- Loading data
- Data types and structures
- Dataframes, lists, arrays, and matrices
- Variable types
- Functions
- Objects
- Base graphics and ggplot2
- Bar chart
- Line chart
- Introduction to the tidyverse
- Ceci n'est pas une pipe
- Gapminder
- A simple Shiny-enabled line plot
- Installing Shiny and running the examples
- Summary
- Chapter 2: Shiny First Steps
- Types of Shiny application
- Interactive Shiny documents in RMarkdown
- A minimal example of a full Shiny application
- The ui.R of the minimal example
- A note on HTML helper functions
- The finished interface
- The server.R of the minimal example
- The program structure
- An optional exercise
- Embedding applications in documents
- Widget types
- The Gapminder application
- The UI
- Data processing
- Reactive objects
- Outputs
- Text summary
- Trend graphs
- A map using leaflet
- Advanced layout features
- Summary
- Chapter 3: Integrating Shiny with HTML
- Running the applications and code
- Shiny and HTML
- Custom HTML links in Shiny
- ui.R
- server.R
- A minimal HTML interface
- index.html
- server.R
- Including a Shiny app on a web page
- HTML templates
- Inline template code
- server.R
- ui.R and template.html
- Defining code in the ui.R file
- ui.R
- Take a step back and rewind
- Exercise
- Debugging
- Bootstrap 3 and Shiny
- Summary
- Chapter 4: Mastering Shiny's UI Functions
- Shiny's layout functions
- Simple
- Complete
- Do it yourself
- Combining layout functions
- Streamlining the UI by hiding elements
- Naming tabPanel elements
- Beautiful tables with DataTable
- Reactive user interfaces
- The reactive user interface example - server.R
- The reactive user interface example - ui.R
- Progress bars
- Progress bar with shinycssloaders
- Modals
- Alternative Shiny designs
- Summary
- Chapter 5: Easy JavaScript and Custom JavaScript Functions
- JavaScript and Shiny
- Example 1 - reading and writing the DOM
- ui.R
- appendText.js
- Example 2 - sending messages between client and server
- ui.R
- server.R
- dropdownDepend.js
- Shinyjs
- Extendshinyjs
- ui.R
- server.R
- JavaScript
- Responding to events in JavaScript
- htmlwidgets
- Dygraphs
- rCharts
- d3heatmap
- threejs
- Summary
- Chapter 6: Dashboards
- Applications in this chapter
- Flexdashboards
- Sidebar application with extra styling
- Adding icons to your UI
- Using shinythemes
- Using the grid layout
- ui.R
- Full dashboard
- Notifications
- Info boxes
- ui.R
- Google Charts gauge
- Resizing the Google chart
- ui.R
- Summary
- Chapter 7: Power Shiny
- Animation
- Reading client information and GET requests in Shiny
- Custom interfaces from GET strings
- Downloading graphics and reports
- Downloadable reports with knitr
- Downloading and uploading data
- Bookmarking
- Bookmarking state
- Encoding the state into a URL
- Single-file application
- Multiple-file application
- Bookmarking by saving the state to the server
- Interactive plots
- Interactive tables
- Row selection
- Column selection
- Cell Selection
- Linking interactive widgets
- Shiny gadgets
- Adding a password
- Summary
- Chapter 8: Code Patterns in Shiny Applications
- Reactivity in RShiny
- A closer look at reactivity
- Controlling specific input with the isolate() function
- Running reactive functions over time (execution scheduling)
- Event-handling using observeEvent and eventReactive
- Functions and modules
- Shinytest
- Debugging
- Handling errors (including validate() and req())
- Validate
- Handling missing input with req()
- Profiling R code
- Debounce and throttle
- Summary
- Chapter 9: Persistent Storage and Sharing Shiny Applications
- Sharing over GitHub
- An introduction to Git
- Using Git and GitHub within Rstudio
- Projects in RStudio (h3)
- Sharing applications using Git
- Sharing using .zip and .tar
- Sharing with the world
- Shinyapps.io
- Shinyapps.io without RStudio
- Shiny server
- Running Shiny app on Amazon AWS
- Scoping, loading, and reusing data in Shiny applications
- Temporary data input/output
- Persistent data storage
- Database using Dplyr, DBI, and POOL
- SQL Injection
- Summary
- Other Books You May Enjoy
- Index
Systemvoraussetzungen
Dateiformat: ePUB
Kopierschutz: Adobe-DRM (Digital Rights Management)
Systemvoraussetzungen:
- Computer (Windows; MacOS X; Linux): Installieren Sie bereits vor dem Download die kostenlose Software Adobe Digital Editions (siehe E-Book Hilfe).
- Tablet/Smartphone (Android; iOS): Installieren Sie bereits vor dem Download die kostenlose App Adobe Digital Editions oder die App PocketBook (siehe E-Book Hilfe).
- E-Book-Reader: Bookeen, Kobo, Pocketbook, Sony, Tolino u.v.a.m. (nicht Kindle)
Das Dateiformat ePUB ist sehr gut für Romane und Sachbücher geeignet – also für „fließenden” Text ohne komplexes Layout. Bei E-Readern oder Smartphones passt sich der Zeilen- und Seitenumbruch automatisch den kleinen Displays an.
Mit Adobe-DRM wird hier ein „harter” Kopierschutz verwendet. Wenn die notwendigen Voraussetzungen nicht vorliegen, können Sie das E-Book leider nicht öffnen. Daher müssen Sie bereits vor dem Download Ihre Lese-Hardware vorbereiten.
Bitte beachten Sie: Wir empfehlen Ihnen unbedingt nach Installation der Lese-Software diese mit Ihrer persönlichen Adobe-ID zu autorisieren!
Weitere Informationen finden Sie in unserer E-Book Hilfe.