0%

Book Description

Shiny and R were made for each other, and this tutorial will show you how to make the most of them. In no time, you’ll be producing fully-featured interactive data summaries to share over the web.

  • Helps you to use Shiny's built in functions to produce engaging and useful user interfaces in hours, not days
  • Enables you to extend Shiny using JavaScript and jQuery with minimal coding
  • Shows you how to write cutting-edge interactive content for the Web

In Detail

R is a highly flexible and powerful tool for analyzing and visualizing data. Shiny is the perfect companion to R, making it quick and simple to share analysis and graphics from R that users can interact with and query over the Web. Let Shiny do the hard work and spend your time generating content and styling, not writing code to handle user inputs.

Web Application Development with R Using Shiny is an accessible introduction to sharing interactive content from R using Shiny. You will learn by doing, with each chapter including code and examples to use and adapt for your own applications. By the end of this book, you will be able to build useful and engaging web applications with only a few lines of code – no JavaScript required.

Web Application Development with R Using Shiny will show you how to begin analyzing, visualizing, and sharing your data using practical examples.

This book will teach you how to rapidly prototype and build interactive data summaries using Shiny's built-in widgets and functions. You will learn how to integrate Shiny applications with your existing HTML and CSS, how to greatly extend the power and usability of your applications using JavaScript, and how to quickly deploy them over the Web.

The book uses practical examples to show you how to get the best out of R and Shiny, helping you to produce and share cutting-edge analytics with minimal effort.

Table of Contents

  1. Web Application Development with R Using Shiny
    1. Table of Contents
    2. Web Application Development with R Using Shiny
    3. Credits
    4. About the Author
    5. Acknowledgement
    6. About the Reviewers
    7. www.PacktPub.com
      1. Support files, eBooks, discount offers and more
        1. Why Subscribe?
        2. Free Access for Packt account holders
    8. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Conventions
      5. Reader feedback
      6. Customer support
        1. Downloading the example code
        2. Errata
        3. Piracy
        4. Questions
    9. 1. Installing R and Shiny and Getting Started!
      1. Installing R
        1. The R console
        2. Code editors and IDEs
          1. Simple and well-featured
          2. Complex and extensible
      2. Learning R
        1. Getting help
        2. Loading data
        3. Dataframes, lists, arrays, and matrices
        4. Variable types
        5. Functions
        6. Objects
      3. Base graphics and ggplot2
        1. Bar chart
        2. Line chart
      4. Installing Shiny and running the examples
      5. Summary
    10. 2. Building Your First Application
      1. Program structure
        1. ui.R of minimal example
        2. server.R of minimal example
          1. Optional exercise
      2. Widget types
      3. Google Analytics application
        1. The UI
        2. Data processing
        3. Reactive objects
        4. Outputs
        5. A note on the application code
        6. Optional exercise
      4. Summary
    11. 3. Building Your Own Web Pages with Shiny
      1. Running the applications and code
      2. Shiny and HTML
      3. Custom HTML links in Shiny
        1. ui.R
        2. server.R
          1. server.R – data preparation
          2. server.R – server definition
      4. Minimal HTML interface
        1. index.html
        2. server.R
      5. JavaScript and Shiny
        1. ui.R
        2. server.R
      6. jQuery
        1. index.html – body
        2. server.R
        3. jQuery
      7. Exercise
      8. Summary
    12. 4. Taking Control of Reactivity, Inputs, and Outputs
      1. Showing and hiding elements of the UI
        1. Giving names to tabPanel elements
      2. Reactive user interfaces
        1. Reactive user interface example – server.R
        2. Reactive user interface example – ui.R
      3. Advanced reactivity
        1. Using reactive objects and functions efficiently
        2. Controlling the whole interface with the submitButton() function
        3. Controlling specific inputs with the isolate() function
        4. Running reactive functions over time
      4. More advanced topics in Shiny
        1. Finely controlling inputs and outputs
        2. Reading client information and GET requests in Shiny
        3. Custom interfaces from GET strings
      5. Animation
      6. Advanced graphics options
        1. Downloading graphics
      7. Downloading and uploading data
      8. Summary
    13. 5. Running and Sharing Your Creations
      1. Sharing with the R community
        1. Sharing over GitHub
        2. Introduction to Git
        3. Sharing applications using Git
        4. Sharing using .zip and .tar
      2. Sharing with the world
        1. Glimmer
        2. Shiny Server
        3. Browser compatibility
      3. Summary
    14. Index
3.141.199.243