Shiny in R the fundamentals of getting started. What Is It? New package in R to create web apps Web app built entirely in R, but can also incorporate.

Slides:



Advertisements
Similar presentations
TWO STEP EQUATIONS 1. SOLVE FOR X 2. DO THE ADDITION STEP FIRST
Advertisements

3rd Annual Plex/2E Worldwide Users Conference Page based on Title Slide from Slide Layout palette. Design is cacorp Title text for Title or Divider.
© 2002 D & D Enterprises 1 Linking Images For Navigation & Clickable Image Maps.
IS 6116 Introduction – 10 Jan Lecturer Details Aonghus Sugrue Website: aonghussugrue.wordpress.com
Slide 1 Insert your own content. Slide 2 Insert your own content.
Chapter 16 Graphical User Interfaces
Basic Java Constructs and Data Types – Nuts and Bolts
1 Applets Programming Enabling Application Delivery Via the Web.
Copyright © 2003 Pearson Education, Inc. Slide 1-1 The Web Wizards Guide to PHP by David A. Lash.
By D. Fisher Geometric Transformations. Reflection, Rotation, or Translation 1.
Nick Feamster CS 6262 Spring 2009
October 2008 MPDPF and MOC Enhancements – Consolidated Mockups.
Business Transaction Management Software for Application Coordination 1 Business Processes and Coordination.
Using the Set Operators
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
List and Search Grants Chapter 2. List and Search Grants 2-2 Objectives Understand the option My Grants List Grant Screen Viewing a Grant Understand the.
Coordinate Plane Practice The following presentation provides practice in two skillsThe following presentation provides practice in two skills –Graphing.
0 - 0.
DIVIDING INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
MULTIPLYING MONOMIALS TIMES POLYNOMIALS (DISTRIBUTIVE PROPERTY)
ADDING INTEGERS 1. POS. + POS. = POS. 2. NEG. + NEG. = NEG. 3. POS. + NEG. OR NEG. + POS. SUBTRACT TAKE SIGN OF BIGGER ABSOLUTE VALUE.
SUBTRACTING INTEGERS 1. CHANGE THE SUBTRACTION SIGN TO ADDITION
MULT. INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
Addition Facts
1 9 Moving to Design Lecture Analysis Objectives to Design Objectives Figure 9-2.
Overview Environment for Internet database connectivity
6/2/ Online Group Enrollment. 6/2/ Introduction Thank you for choosing Online Enrollment! This presentation will walk you through the Online.
PROCESS FLOW FOR APPLICATION OF THE BCHAA SMART CARD AND ACCIDENTAL INSURANCE COVER 1.
1 Automating Auto Tuning Jeffrey K. Hollingsworth University of Maryland
How To Use Google Forms to Create A Test Quick Easy Self-Graded!! Instant Reports.
1 Web-Enabled Decision Support Systems Access Introduction: Touring Access Prof. Name Position (123) University Name.
FitNesse in Fifty Minutes Chris Harbert Resonate 1.
Social Web Design 1 Darby Chang Social Web Design.
Molecular Biomedical Informatics Web Programming 1.
1111 Creating ASPX Controls Programatically Objectives You will be able to Dynamically add controls to a page. Dynamically alter properties of controls.
O X Click on Number next to person for a question.
© S Haughton more than 3?
1 What is JavaScript? JavaScript was designed to add interactivity to HTML pages JavaScript is a scripting language A scripting language is a lightweight.
1 Challenge the future Second-hand Stuff Amsterdam 2 Project.
1 Directed Depth First Search Adjacency Lists A: F G B: A H C: A D D: C F E: C D G F: E: G: : H: B: I: H: F A B C G D E H I.
24-Aug-14 HTML Forms. 2 What are forms? is just another kind of HTML tag HTML forms are used to create (rather primitive) GUIs on Web pages Usually the.
Twenty Questions Subject: Twenty Questions
David Walker Ottawa TMG Users Group 15 March 2014.
Consignment Tracking System An Overview - Aron Bury - Ian Searle - Ian Storey.
1 Web Pages Week Three more tags… Sound Redirection Marquee.
Past Tense Probe. Past Tense Probe Past Tense Probe – Practice 1.
Addition 1’s to 20.
25 seconds left…...
Chapter 8 HTML Editors Copyright © 2006 Pearson Addison-Wesley. All rights reserved. 8-2 Text Editors No single method Notepad Textpad, Notetab, and.
Test B, 100 Subtraction Facts
11 = This is the fact family. You say: 8+3=11 and 3+8=11
Week 1.
We will resume in: 25 Minutes.
Chapter 12 Working with Forms Principles of Web Design, 4 th Edition.
1 Ke – Kitchen Elements Newport Ave. – Lot 13 Bethesda, MD.
O X Click on Number next to person for a question.
CHAPTER 11 FILE INPUT & OUTPUT Introduction to Computer Science Using Ruby (c) 2012 Ophir Frieder et al.
Chapter 13 – Introduction to Classes
1/16 Steven Leung Introduction to HTML/CGI/JavaScript Intro to HTML/CGI/JavaScript How the Web Works HTML: Basic Concept CGI: Basic Concept JavaScript:
More on Processing User Input BCIS 3680 Enterprise Programming.
User Interfaces Made Easy With SAS Stored Processes
Chapter 8 Improving the User Interface
LobbyPal Online Visitor Management System by Aquarius Soft
CGI Programming: Part 1. What is CGI? CGI = Common Gateway Interface Provides a standardized way for web browsers to: –Call programs on a server. –Pass.
2440: 141 Web Site Administration Web Server-Side Programming Professor: Enoch E. Damson.
CSCI 6962: Server-side Design and Programming Introduction to Java Server Faces.
הרצאה 4. עיבוד של דף אינטרנט דינמי מתוך Murach’s PHP and MySQL by Joel Murach and Ray Harris.  דף אינטרנט דינמי משתנה עפ " י הרצת קוד על השרת, יכול להשתנות.
1 HTML forms (cont.)
Lecy ∙ Data-Driven Management Lecture 12 Building Shiny Apps.
Presentation transcript:

shiny in R the fundamentals of getting started

What Is It? New package in R to create web apps Web app built entirely in R, but can also incorporate HTML, CSS, and JavaScript for more flexibility By default, the UI is simple to create and view Built-in widgets for displaying plots, tables, and any other printed output from R 2

Simple Example > runExample("01_hello") 3

ui.R & server.R Two fundamental entities to any Shiny web app ui.R Designates the user interface of your app server.R Contains all the nuts and bolts of your app 4

The Flow ui.R input$tag server.R output$tag Start 5

ui.R in Detail The three fundamental components of ui.R: headerPanel() sidebarPanel() selectInput() checkboxGroupInput() mainPanel() 6

ui.R Syntax To be memorized! 7

The Flow ui.R input$tag server.R output$tag Start 8

Dashboard Example 9

server.R in Detail – input$tag input$tag Whatever options are selected under sidebarPanel() in ui.R is passed to the server.R script input$dataset becomes either “Products”, “Clients”, or “All data” string, depending on which one the user chooses input$dataset is reactionary, which means it always changes each time the user decides to select any new value Beware!! The $ in input$tag here does not refer to any column in the input object tag 10

server.R in Detail – input$tag (continued) What does input$dataset do? Anything you want to do with it 11

The Flow ui.R input$tag server.R output$tag Start 12 input$dataset = “Products” OR input$dataset = “Clients” OR input$dataset = “All data”

server.R in Detail – output$tag ‘output’s themselves have tags! The output is passed to ui.R and recognized under mainPanel() tag 13

server.R Syntax To be memorized! 14

Summary User chooses the inputs Inputs are stored in input$tags input$tags are manipulated in server.R server.R returns output (tables, charts, printed text etc.) in the form of output$tags The output$tags from server.R is then accepted by ui.R and displayed on the dashboard for the user 15

Tips Start small Keep track of your parentheses Work on ui.R first Reference my cheatsheet github.com/alaneng/personal Frustration will be commonplace Check out Glimmer -- host your web app online! 16

I didn’t understand anything ? 17

I’m for hire! linkedin.com/in/alanfaieng 18