6. Data visualisation

Five Interactive R Visualizations With D3, ggplot2, and RStudio

Plotly has a new R API and ggplot2 library for making beautiful graphs. The API lets you produce interactive D3.js graphs with R. This post has five examples. Head to our docs to get a key and you can start making, embedding, and sharing plots. The code below produces our first plot. library(plotly) set.seed(100) d <- diamonds[sample(nrow(diamonds), 1000), ] plot_ly(d, x = carat,… Lire la suite Five Interactive R Visualizations With D3, ggplot2, and RStudio