Dashboards – Part Two “I think, aesthetically, car design is so interesting - the dashboards, the steering wheels, and the beauty of the mechanics. I don't.

Slides:



Advertisements
Similar presentations
Drupal Basics Part 2 Everyday Tasks Editing a page Toolbar basics Add a hyperlink Using the theme Agricultural Communications Services Integrated Media.
Advertisements

Microsoft ® Office Access ® 2007 Training Build a database II: Create tables for a new Access database GPC presents:
Dynamic Forms How to use Tables. What is a Table? Usually you see a table on a form like this…. 3 columns X 3 rows with grey border lines But this could.
JQuery Mobile. Benefits Required links Remember that we need to add the links to the head, in this order.
Theming for V12 Revolution
Advanced Microsoft Word On the File tab click New. Click on the type of Template you would like to use (i.e.: Faxes). Click on the specific template.
Exploring Word Grauer and Barber 1 Committed to Shaping the Next Generation of IT Experts. Chapter 4: Advanced Features: Tables, Styles, and Sections.
HOW TO CREATE A HISTOGRAM IN EXCEL. STEP 1: INSTALL ANALYSIS TOOLPAK 1.Click on the Microsoft Office Button (circle button) 2.Click on Excel Options.
Creating a Histogram using the Histogram Function.
By Ed MacKeen Students will Learn: Objectives: To type a document in Microsoft Word and to save it. Use the Center button to center text. Use the Bold.
Microsoft Excel 2010 Chapter 8
 Experiment with the Design features to get the look you want for your presentation.  Most design templates will keep the design the same on all your.
© Ms. Masihi.  The Dreamweaver Welcome Screen first opens when you start Dreamweaver.  This screen gives you quick access to previously opened files,
Microsoft Windows Vista Chapter 1 Fundamentals of Using Microsoft Windows Vista.
More WordPress Kathy E Gill 3 February What Is WordPress?  A content management system.
Pasewark & Pasewark 1 Access Lesson 5 Creating and Modifying Reports Microsoft Office 2007: Introductory.
Copyright 2006 South-Western/Thomson Learning Chapter 12 Tables.
Title of Presentation. Title (e.g. Forward Thinking) Body Copy Title of Presentation.
1. Chapter 15 Creating Charts 3 Charting Data in Word A chart or graph presents data visually. A chart depicts numeric data in a graphical format. If.
Creating a poster is easier than you think.
How to operate PowerPoint The slides will go automatically. (PART OF WHEN WILL YOU LEARN SERIES 1/3)
Spreadsheet Formatting. Formatting Is applied to spreadsheet components for the purpose of organizing and clarifying information When data is presented.
Pasewark & Pasewark 1 Access Lesson 5 Creating and Modifying Reports Microsoft Office 2007: Introductory.
USING WORDPRESS TO CREATE A WEBSITE (RATHER THAN A BLOG) STEP-BY-STEP INSTRUCTIONS.
Creating Google Sites Laura Assem, Director of Technology.
Creating Webpages. Today’s Topics Embed video Embed music More text formatting Wordpress.
Building Forms Microsoft Office Word 2007 Illustrated Complete.
Copyright 2007, Information Builders. Slide 1 Flex your Dashboard Muscle with WebFOCUS Flex Enable John Gogoly Senior Systems Engineer June, 2008.
Microsoft Word 2007 Tracking Changes. Review Tab Select the Review tab from the ribbon to begin Track Changes.
Looking at various Rich Message options in KRAD Kuali University: Apply Now Lab : Rich Messages Lab Objectives Understand what Rich Messages are and how.
Page Layout You can quickly and easily format the entire document to give it a professional and modern look by applying a document theme. A document theme.
How to Make a Power Point By Jeff Hinton (revised by Diana Leiter) Go to Slide 2. (You can get there by going to VIEW – SLIDE SORTER.)
24 Copyright © 2009, Oracle. All rights reserved. Building Views and Charts in Requests.
Creating a Google Site For a Digital Portfolio Purpose.
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall. 1 Skills for Success with Microsoft ® Office 2007 PowerPoint Lecture to Accompany.
Interactive R: Shiny Workshop April 19, 10:30am Chardon 115 Dr. Wolfgang Rolke.
Dashboards – Part One “I think, aesthetically, car design is so interesting - the dashboards, the steering wheels, and the beauty of the mechanics. I don't.
PowerPoint template INSTRUCTION
First EURAXESS TOPIII training for Portal Administrators
Access Creating Forms and Reports
Getting Started with Vendor Pay Requests
Microsoft FrontPage 2003 Illustrated Complete
Complex Layouts created simply using Display Suite
Learning PowerPoint.
OUT OF THE BOX HOW TO USE THE SYSTEM
Unit I: Developing Multipage Documents
Dashboards I think, aesthetically, car design is so interesting - the dashboards, the steering wheels, and the beauty of the mechanics. I don't know how.
Farming: An example of a system
INTERMEDIATE PROGRAMMING LESSON
A Gentle Introduction to R from a SAS Programmer’s Perspective
Adding MLA Format Page Numbers to a Word Document
TITLE OF HEADER HEADER HEADER HEADER HEADER HEADER HEADER HEADER
Title Layout Subtitle.
In Class Programming BIS1523 – Lecture 11.
WebJunction CQ Training - How to Update Your Landing Page
Some Layouts have both Animated & Static. Main Title Page Animated
TITLE OF PRESENTATION TOPIC HEADER TOPIC HEADER TOPIC HEADER
Subhead text can go here
8.02 Spreadsheet Formatting
Learning PowerPoint.
Subhead text can go here
How to Make a Power Point
Title Your name About this template About this template
CMP Creating Your Personal and Small Business Web Sites
Creating and Sending Saved Messages
Add Your Presentation Title
Campaigns Admin Training.
JavaScript: BOM and DOM CS Programming Languages for Web Applications
Speaker PPT Template | 19th Annual Symposium
Presentation transcript:

Dashboards – Part Two “I think, aesthetically, car design is so interesting - the dashboards, the steering wheels, and the beauty of the mechanics. I don't know how any of it works, I don't want to know, but it's inspirational.” Paloma Picasso

Pick Up Where We Left Today we will pick up where we left last time. More specifically, we will improve our dashboard illustrating the results (i.e., histogram) of the sentiment analysis we performed about @delta on Twitter. We will do so by adding content to our sidebar (table with text), by customizing our dashboard (color + infobox), by making it dynamic, and by adding a time series component!

Finally input @delta results to your dashboard (server) library(shiny) library(shinydashboard) header <- dashboardHeader(title = "@delta on Twitter") sidebar <- dashboardSidebar() body <- dashboardBody(fluidRow( box(plotOutput("plot1", height = 250)), box( title = "Controls", sliderInput("Slider", "Number of Messages:", 1, 1500, 500)))) ui <- dashboardPage(header,sidebar,body) server <- function(input, output) { delta_scores <- score.sentiment(delta_text, pos.words, neg.words) output$plot1 <- renderPlot({ delta <- delta_scores$score[seq_len(input$Slider)] hist(delta) }) } shinyApp(ui, server)

Finally input @delta results to your dashboard (server)

Add items to your sidebar library(shiny) library(shinydashboard) header <- dashboardHeader(title = "@delta on Twitter") sidebar <- dashboardSidebar( sidebarMenu( menuItem("Dashboard", tabName = "dashboard", icon = icon("dashboard")), menuItem("Table", tabName = "sentiment", icon = icon("table")) ) body <- dashboardBody(fluidRow( box(plotOutput("plot1", height = 250)), box( title = "Controls", sliderInput("Slider", "Number of Messages:", 1, 1500, 500)))) ui <- dashboardPage(header,sidebar,body) server <- function(input, output) { delta_scores <- score.sentiment(delta_text, pos.words, neg.words) output$plot1 <- renderPlot({ delta <- delta_scores$score[seq_len(input$Slider)] hist(delta) }) } shinyApp(ui, server)

Add items to your sidebar

Add table to your sidebar tab library(shiny) library(shinydashboard) header <- dashboardHeader(title = "@delta on Twitter") sidebar <- dashboardSidebar(sidebarMenu( menuItem("Dashboard", tabName = "dashboard", icon = icon("dashboard")), menuItem("Table", tabName = "sentiment", icon = icon("table")) )) body <- dashboardBody(tabItems( # First tab content tabItem(tabName = "dashboard", fluidRow(box(plotOutput("plot1", height = 250)), box(title = "Controls", sliderInput("Slider", "Number of Messages:", 1, 1500, 500)))), # Second tab content tabItem(tabName = "sentiment", dataTableOutput("mytable") ))) ui <- dashboardPage(header,sidebar,body) server <- function(input, output) { delta_scores <- score.sentiment(delta_text, pos.words, neg.words) output$plot1 <- renderPlot({ delta <- delta_scores$score[seq_len(input$Slider)] hist(delta) output$mytable <- renderDataTable({delta_scores}) }) } shinyApp(ui, server)

Add items to your sidebar

Customizing dashboard library(shiny) library(shinydashboard) header <- dashboardHeader(title = "@delta on Twitter") sidebar <- dashboardSidebar(sidebarMenu( menuItem("Dashboard", tabName = "dashboard", icon = icon("dashboard")), menuItem("Table", tabName = "sentiment", icon = icon("table")) )) body <- dashboardBody(tabItems( # First tab content tabItem(tabName = "dashboard", fluidRow(box(title = "Histogram", status = "primary", solidHeader = TRUE, collapsible = TRUE, plotOutput("plot1", height = 250)), box(title = "Controls", status = "warning", solidHeader = TRUE, collapsible = TRUE, sliderInput("Slider", "Number of Messages:", 1, 1500, 500)))), # Second tab content tabItem(tabName = "sentiment", dataTableOutput("mytable") ))) ui <- dashboardPage(skin = "green", header,sidebar,body) server <- function(input, output) { delta_scores <- score.sentiment(delta_text, pos.words, neg.words) output$plot1 <- renderPlot({ delta <- delta_scores$score[seq_len(input$Slider)] hist(delta) output$mytable <- renderDataTable({delta_scores}) }) } shinyApp(ui, server)

Customize dashboard

Make it dynamic/add infobox library(shiny) library(shinydashboard) library(quantmod) header <- dashboardHeader(title = "@delta on Twitter") sidebar <- dashboardSidebar(sidebarMenu( menuItem("Dashboard", tabName = "dashboard", icon = icon("dashboard")), menuItem("Table", tabName = "sentiment", icon = icon("table")) , menuItem("Stock", tabName = "stock", icon = icon("dollar")) )) body <- dashboardBody(tabItems( # First tab content tabItem(tabName = "dashboard", fluidRow(box(title = "Histogram", status = "primary", solidHeader = TRUE, collapsible = TRUE, plotOutput("plot1", height = 250)), box(title = "Controls", status = "warning", solidHeader = TRUE, collapsible = TRUE, sliderInput("Slider", "Number of Messages:", 1, 1500, 500)))), # Second tab content tabItem(tabName = "sentiment", dataTableOutput("mytable")) , # Third tab content tabItem(tabName = "stock", fluidRow(infoBox(title = "Latest", icon('dollar'), getQuote('DAL')$Last, color='red'), infoBoxOutput("deltaBox")) ) )) ui <- dashboardPage(skin = "green", header,sidebar,body) server <- function(input, output) { delta_scores <- score.sentiment(delta_text, pos.words, neg.words) output$plot1 <- renderPlot({ delta <- delta_scores$score[seq_len(input$Slider)] hist(delta) output$mytable <- renderDataTable({delta_scores}) output$deltaBox <- renderInfoBox({infoBox("Website", icon('plane'), href = 'http://ir.delta.com/shareholder-resources/investor-updates/default.aspx', color='black')}) }) } shinyApp(ui, server)

Make it dynamic/add infobox

Add times series library(shiny) library(shinydashboard) library(quantmod) library(dygraphs) header <- dashboardHeader(title = "@delta on Twitter") sidebar <- dashboardSidebar(sidebarMenu( menuItem("Dashboard", tabName = "dashboard", icon = icon("dashboard")), menuItem("Table", tabName = "sentiment", icon = icon("table")) , menuItem("Stock", tabName = "stock", icon = icon("dollar")) )) body <- dashboardBody(tabItems( # First tab content tabItem(tabName = "dashboard", fluidRow(box(title = "Histogram", status = "primary", solidHeader = TRUE, collapsible = TRUE, plotOutput("plot1", height = 250)), box(title = "Controls", status = "warning", solidHeader = TRUE, collapsible = TRUE, sliderInput("Slider", "Number of Messages:", 1, 1500, 500)))), # Second tab content tabItem(tabName = "sentiment", dataTableOutput("mytable")) , # Third tab content tabItem(tabName = "stock", fluidRow(infoBox(title = "Latest", icon('dollar'), getQuote('DAL')$Last, color='red'), infoBoxOutput("deltaBox"), box(title = "Closing share price", width = 12, heigth = NULL, dygraphOutput('delta') )) ) )) ui <- dashboardPage(skin = "green", header,sidebar,body) server <- function(input, output) { delta_scores <- score.sentiment(delta_text, pos.words, neg.words) output$plot1 <- renderPlot({ delta <- delta_scores$score[seq_len(input$Slider)] hist(delta) output$mytable <- renderDataTable({delta_scores}) output$deltaBox <- renderInfoBox({infoBox("Website", icon('plane'), href = 'http://ir.delta.com/shareholder-resources/investor-updates/default.aspx', color='black')}) output$delta <- renderDygraph({dygraph(Cl(get(getSymbols('DAL'))))})}) } shinyApp(ui, server)

Add times series

Add times series

Conclusion In the last two days you learned the basic structure and use of shinydashboard. It has many options, and you will need to consult the online documentation and examples to learn more about creating dashboards Just know that shinydashboard is REALLY powerful!