This tutorial will teach you how to use Plotly and Shiny in R to create interactive data visualizations. The first part of the tutorial is interactive and uses the learnr R package to teach you plotly in your web browser or RStudio viewer. In the second part of the tutorial, switch to opening the numbered .R files in RStudio. You can still follow along in the tutorial for the second half.
- Download and install R
- Download and install RStudio. Make sure you have the latest versions!
- Inside RStudio go to Tools -> Install Packages and install learnr, plotly, shiny, shinythemes, and all dependencies. If the install of any of the packages fails because of dependencies, be sure to search for and install the dependency then try to install the package again. If you have any of these packages already, be sure to update them.
- Download or clone this repository
- Open the plotly_shiny_tutorial_v2.md file in RStudio and hit the green arrow where it says "Run Document."
- After finishing the first part of the tutorial, open a new RStudio instance and open the .R files to work on the second part of the tutorial on Shiny. You can still follow along in the tutorial.