Web Application Development with R Using Shiny


Web Application Development with R Using Shiny
eBook: $20.99
Formats: PDF, PacktLib, ePub and Mobi formats
$17.84
save 15%!
Print + free eBook + free PacktLib access to the book: $55.98    Print cover: $34.99
$34.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Reviews
Support
Sample Chapters
  • 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

Book Details

Language : English
Paperback : 110 pages [ 235mm x 191mm ]
Release Date : October 2013
ISBN : 1783284471
ISBN 13 : 9781783284474
Author(s) : Chris Beeley
Topics and Technologies : All Books, Web Development, Open Source

Table of Contents

Preface
Chapter 1: Installing R and Shiny and Getting Started!
Chapter 2: Building Your First Application
Chapter 3: Building Your Own Web Pages with Shiny
Chapter 4: Taking Control of Reactivity, Inputs, and Outputs
Chapter 5: Running and Sharing Your Creations
Index
  • Chapter 1: Installing R and Shiny and Getting Started!
    • Installing R
      • The R console
      • Code editors and IDEs
        • Simple and well-featured
        • Complex and extensible
    • Learning R
      • Getting help
      • Loading data
      • Dataframes, lists, arrays, and matrices
      • Variable types
      • Functions
      • Objects
    • Base graphics and ggplot2
      • Bar chart
      • Line chart
    • Installing Shiny and running the examples
    • Summary
    • Chapter 2: Building Your First Application
      • Program structure
        • ui.R of minimal example
        • server.R of minimal example
          • Optional exercise
      • Widget types
      • Google Analytics application
        • The UI
        • Data processing
        • Reactive objects
        • Outputs
        • A note on the application code
        • Optional exercise
      • Summary
      • Chapter 3: Building Your Own Web Pages with Shiny
        • Running the applications and code
        • Shiny and HTML
        • Custom HTML links in Shiny
          • ui.R
          • server.R
            • server.R – data preparation
            • server.R – server definition
        • Minimal HTML interface
          • index.html
          • server.R
        • JavaScript and Shiny
          • ui.R
          • server.R
        • jQuery
          • index.html – body
          • server.R
          • jQuery
        • Exercise
        • Summary
        • Chapter 4: Taking Control of Reactivity, Inputs, and Outputs
          • Showing and hiding elements of the UI
            • Giving names to tabPanel elements
          • Reactive user interfaces
            • Reactive user interface example – server.R
            • Reactive user interface example – ui.R
          • Advanced reactivity
            • Using reactive objects and functions efficiently
            • Controlling the whole interface with the submitButton() function
            • Controlling specific inputs with the isolate() function
            • Running reactive functions over time
          • More advanced topics in Shiny
            • Finely controlling inputs and outputs
            • Reading client information and GET requests in Shiny
            • Custom interfaces from GET strings
          • Animation
          • Advanced graphics options
            • Downloading graphics
          • Downloading and uploading data
          • Summary
          • Chapter 5: Running and Sharing Your Creations
            • Sharing with the R community
              • Sharing over GitHub
              • Introduction to Git
              • Sharing applications using Git
              • Sharing using .zip and .tar
            • Sharing with the world
              • Glimmer
              • Shiny Server
              • Browser compatibility
            • Summary

            Chris Beeley

            Chris Beeley is an Applied Researcher working in healthcare in the UK. He completed his PhD in Psychology at the University of Nottingham in 2009 and now works with Nottinghamshire Healthcare NHS Trust providing statistical analysis and other types of evaluation and reporting using routine data generated within the Trust. Chris has a special interest in the use of regression methods in applied healthcare settings, particularly forensic psychiatric settings, as well as in the collection, analysis, and reporting of patient feedback data. Chris has been a keen user of R and a passionate advocate of open-source tools within research and healthcare settings since completing his PhD. He has made extensive use of R (and Shiny) to automate analysis and reporting for new patient feedback websites. This was funded by a grant from the NHS Institute for Innovation and made in collaboration with staff, service users, and carers within the Trust, particularly individuals from the Involvement Center.

            Code Downloads

            Download the code and support files for this book.


            Submit Errata

            Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.


            Errata

            - 1 submitted: last submission 27 Jan 2014

            Errata type: Typo | Page number: 25

            The first line on the second paragraph on page 25 has incorrect code. The correct one is as follows (the correction is highlighted):

             

            "An output element is defined next with output$textDisplay <- renderText({..})."

             

            Sample chapters

            You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

            Frequently bought together

            Web Application Development with R Using Shiny +    Tomcat 6 Developer's Guide =
            50% Off
            the second eBook
            Price for both: €26.35

            Buy both these recommended eBooks together and get 50% off the cheapest eBook.

            What you will learn from this book

            • Produce advanced analysis and graphics using R
            • Implement Shiny's built-in widgets to rapidly build user interfaces
            • Apply reactive programming techniques to handle user interactions with minimal coding
            • Adapt and change your interfaces in response to user input to give your users an engaging and rewarding experience
            • Integrate JavaScript and jQuery with Shiny to add different and exciting content and interactions to your Shiny applications
            • Use HTML and CSS to style your Shiny applications and integrate them seamlessly with your own web content
            • Serve your users better by allowing them to upload their own data and download the results quickly and simply
            • Deploy Shiny applications over the Web using simple and free technologies

            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.

            Approach

            This book follows a standard tutorial-based approach which will teach you how to make a web app using R and Shiny quickly and easily.

            Who this book is for

            This book is for anybody who wants to produce interactive data summaries over the Web, whether you want to share them with a few colleagues or the whole world. You need no previous experience with R, Shiny, HTML, or CSS to begin using this book, although you will need at least a little previous experience with programming in a different language.

            Code Download and Errata
            Packt Anytime, Anywhere
            Register Books
            Print Upgrades
            eBook Downloads
            Video Support
            Contact Us
            Awards Voting Nominations Previous Winners
            Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
            Resources
            Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software