Prabhat Kumar
24th July 2015
D3 and Shiny App for Data Visualization.
This Shiny Web Application, is about temperature variation record analysis from last 10 years. I have taken the data for every 31st January from 2006 to 2015 for my City. There is some variation recorded and i have used it to plot a histogram by using Shiny and D3 framework.
It's just to know, how is the temperature varies every year on same date. To do this, i have separated my code in some parts:
".csv" format,server.R for some reactive output display as a result of server calculations,ui.R for the user-interface definitions,d3-shiny-app.html as a partial markup page, where i have written all the D3 logic to do data visualization.[A] This is the server logic for a Shiny Web Application:
server.R in "data.csv" format,[B] This is the User-Interface Definition for a Shiny Web Application:
shinyUI method give header of the working app,.csv format,[C] This is the Data Visualization Definition for a Shiny Web Application:
Shiny.OutputBinding() is a custom output component, that is used for a need of output binding, it's an object created that tells Shiny how to identify instances of the component and how to interact with them.Shiny.OutputBinding reads the data-output-id attribute and falls back to the element's id if not present.renderValue(el, data),Date,Morning,Evening
01/31/2006,02.1,6.8
01/31/2007,-01.89,4.44
01/31/2008,04.10,9.50
01/31/2009,05.68,8.10
01/31/2010,04.34,6.88
01/31/2011,-01.10,05.61
01/31/2012,01.89,5.44
01/31/2013,04.10,10.22
01/31/2014,08.68,4.10
01/31/2015,02.88,09.34
Copyright: © 2015 Prabhat Kumar, All Rights reserved.