Installing plotly - Fairtreegists
Following [this](https://plot.ly/r/getting-started/) howto, go [here](https://plot.ly/) and sign up using github.
Once this has been done, take not of your username (same as github) and api key.
Then go to R and use the following code.
install.packages("viridis") # dependency
install.packages("devtools")
devtools::install_github("ropensci/plotly")
library(plotly)
Sys.setenv("plotly_username"="<<githubusername generated above>>")
Sys.setenv("plotly_api_key"="<<<apikeygenerated above>>>")
Now verify that you have successfully linked R to plotly:
plotly:::verify("username")
plotly:::verify("api_key")