Posts

Showing posts with the label Rmarkdown

R, Shiny, Rmarkdown Dashboard Tutorial with Cryptocurrency Data Example

Image
This post is intended for those with some exposure to R and shiny. If you are brand new to Shiny or Rmarkdown, then you may want to review this post before proceeding onward. I'll address the following: Loading and using data in your document Adjusting margins in your shiny document. Margins are by default set at a specific width for all shiny documents. Provide example code for R, Rshiny, Rmarkdown dashboard. Includes two selector inputs, one to choose which column of the daily trading data to use and the other to select which cryptocurrencies to plot. date range input render table with correlation matrix render line graph with options to select which cryptocurrencies to graph. On my last post I gave an explanation of the tutorial code that appears when you open a new Rmarkdown document. This time I built a small dashboard with online cryptocurrency trading data. I pulled this data from this webpage which has all sorts of cyrpto trading data. I used the three daily

Beginner Tutorial for Dashboard / Web Development Using R, Shiny, R Markdown.

Image
Creating dashboards is an excellent way to present dynamic and actionable analytic output. There is a plethora of proprietary dashboard software packages but they cost exorbitant amounts to do something that isn't as powerful or flexible as R shiny, which is freely available. Admittedly, many of these software packages provide data / database integration and other bells and whistles, but you can accomplish the same things with a little know how. My hope is to enable people to produce their desired and perhaps needed dashboard free of cost (other than man hours) without having to commit to a third party vendor. I'll be covering basics here, but if people are also interested in more advanced features such as interactive plots, I can write another tutorial going over that. I use R Markdown because I find using two R files, one for the UI and the other for the R code (server file) is terribly obnoxious and a bit cumbersome. R Markdown allows you to do it all in one .rmd file. R