Web application development with R using Shiny : integrate the power of R with the simplicity of Shiny to deliver cutting-edge analytics over the Web / Chris Beeley.
Material type: TextSeries: Community experience distilledPublisher: Birmingham, UK : Packt Publishing, 2016Edition: Second editionDescription: 1 online resource (1 volume) : illustrationsContent type:- text
- computer
- online resource
- 9781785289682
- 1785289683
- 005.3 23
- QA76.76.A65
Description based on online resource; title from cover page (Safari, viewed February 12, 2016).
Includes index.
Annotation Integrate the power of R with the simplicity of Shiny to deliver cutting-edge analytics over the WebAbout This Book Use Shiny's built-in functions to produce engaging user interfaces, and integrate them into your own web pages Implement powerful user-contributed packages to access graphics from the web, make your own dashboards, use interactive maps, and more Extend Shiny using JavaScript and jQuery with minimal coding using this handy, step-by-step guideWho This Book Is ForThis 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. No previous experience with R, Shiny, HTML, or CSS is required to begin using this book, although you should possess some previous experience with programming in a different language.What You Will Learn Build interactive applications using Shiny's built-in widgets Use the built-in layout functions in Shiny to produce user-friendly applications Integrate Shiny applications with web pages and customize them using HTML and CSS Harness the power of JavaScript and jQuery to customize your applications Engage your users and build better analytics using interactive plots Debug your applications using Shiny's built-in functions Deliver simple and powerful analytics across your organization using Shiny dashboards Share your applications with colleagues or over the Internet using cloud services or your own serverIn DetailR is a highly flexible and powerful tool for analyzing and visualizing data. Most of the applications built using various libraries with R are desktop-based. But what if you want to go on the web? Here comes Shiny to your rescue!Shiny allows you to create interactive web applications using the excellent analytical and graphical capabilities of R. This book will guide you through basic data management and analysis with R through your first Shiny application, and then show you how to integrate Shiny applications with your own web pages. Finally, you will learn how to finely control the inputs and outputs of your application, along with using other packages to build state-of-the-art applications, including dashboards.Style and approachLearn by doing! Each chapter includes code and examples to use and adapt for your own applications. As the chapters progress, the code and examples are built upon until you have all the materials required to build a large, complex, real-world analytics application.
Cover ; Copyright; Credits; About the Author; About the Reviewer; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Getting Started with 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; Advanced tasks with dplyr and ggvis; Preparing the data; A simple interactive line plot; Installing Shiny and running the examples; Summary; Chapter 2: Building Your First Application
Types of Shiny applicationInteractive Shiny documents in RMarkdown; A minimal example of a fully Shiny application; ui.R of minimal example; A note on HTML helper functions; The finished interface; server.R of minimal example; The program structure; An optional exercise; Widget types; The Google Analytics application; The UI; Data processing; Reactive objects; Outputs; Text summary; Trend graphs; A map of users across the world; A note on the application code; An optional exercise; Advanced layout features; Summary; Chapter 3: Building Your Own Web Pages with Shiny
Running the applications and codeShiny and HTML; Custom HTML links in Shiny; ui.R; server.R; server.R -- data preparation; server.R -- the server definition; A minimal HTML interface; index.html; server.R; JavaScript and Shiny; Example 1 -- reading and writing the DOM; ui.R; server.R; Example 2 -- sending messages between client and server; ui.R; server.R; dropdownDepend.js; Take a step back and rewind; jQuery; index.html -- the body; server.R; Exercise; Debugging; Bootstrap 3 and Shiny; Summary; Chapter 4: Taking Control of Reactivity, Inputs, and Outputs ; What's new in our application?
Downloading data from RGoogleAnalyticsAnimation; Streamline 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; Advanced reactivity and data handling; Controlling the whole interface with submitButton(); Controlling specific inputs with the isolate() function; Running reactive functions over time; Using reactive objects and functions efficiently; More advanced topics in Shiny; Finely controlling inputs and outputs
Reading client information and GET requests in ShinyCustom interfaces from GET strings; Advanced graphics options; Downloading graphics and reports; Downloadable reports with knitr; Downloading and uploading data; Debugging; Good practice when coding Shiny applications; Debugging functions; Summary; Chapter 5: Advanced Applications I -- Dashboards ; Applications in this chapter; Version one -- sidebar layout; Adding icons to your UI; Using shinyBS to add pop-ups and tooltips; ui.R; Adding a pop-up window to an output; Using shinythemes; Version two -- grid layout (A); ui.R
Version two -- grid layout (B)
eBooks on EBSCOhost EBSCO eBook Subscription Academic Collection - Worldwide