title | subtitle | author | job | framework | highlighter | hitheme | widgets | mode | knit | ||
---|---|---|---|---|---|---|---|---|---|---|---|
Project-ddp2014 |
Project presentation of Unit conversion dynamic UI |
Alok Juneja |
Presentation made on Fri Jun 20 02:26:28 2014 |
io2012 |
highlight.js |
tomorrow |
|
selfcontained |
slidify::knit2slides |
A system of measurement is a set of units of measurement which we use in our daily life to quantify the things that we use/consume.
There are several systems of measurements used in different countries and in different fields of science depending on the requirements. To name few..
- Metric system
- Imperial and US customary units
- Natural units
- Non-standard units
- Units of currency
--- .txtfont #id
As a demonstration, a simple unit converter is implemented in shiny. Following conversions have been used.
Temperature conversion
Length conversion
Volume conversion
--- .codefont .txtfont #id
We do conversions from one unit to another in our daily life. Few examples..
#Q1. What is the human body temperature (37 degree celsius) in degree Fahrenheit?
bd_cel=37
(bd_cel*9/5)+32
## [1] 98.6
#Q2. How many meters is equivalent to 1 mile in US?
dis_mile=1
dis_mile*1609.344
## [1] 1609
#Q3. How much ml in 12.004 US oz coke can in US?
can_oz=12.004
can_oz * 29.5735
## [1] 355
--- &carousel .span12 #id
*** {class: active, img: "assets/img/convert-temperature.png"}
Convert Temperature
*** {img: "assets/img/convert-length.png"}
Convert Length
*** {img: "assets/img/convert-volume.png"}
Convert Volume
--- .class #id
Shiny source code:
https://gist.github.com/junejaalok/9dfe302679c032a80c47
Application on shinapps.io
https://junejaalok.shinyapps.io/project-ddp2014/
In case of the presence of the DESCRIPTION, README.md, server.R and ui.R do not show you the full GUI on web browser, try to resize your web browser otherwise please use the following link...
https://junejaalok.shinyapps.io/project-ddp2014/?showcase=0
--- .txtfont #id
Following web-pages helped me to get better insight of making shiny application and slidify presentation
http://slidify.org/samples/intro/index.html#1
http://stackoverflow.com/questions/23747704/font-size-and-line-spacing-r-slidify
https://gist.github.com/wch/9609200
https://gist.github.com/wch/9689441
https://gist.github.com/jeromyanglim/2716336
https://github.com/rstudio/shinyapps/blob/master/guide/guide.md
https://github.com/ramnathv/carouselLayout
http://stackoverflow.com/questions/16904054/slidify-how-to-position-an-image