New to Plotly?
Plotly's R library is free and open source!
Get started by downloading the client and reading the primer.
You can set up Plotly to work in online or offline mode.
We also have a quick-reference cheatsheet (new!) to help you get started!
##  '220.127.116.1100'
library(plotly) p <- plot_ly( type = 'scatter', x = mtcars$hp, y = mtcars$qsec, text = paste("Make: ", rownames(mtcars), "<br>hp: ", mtcars$hp, "<br>qsec: ", mtcars$qsec, "<br>Cyl: ", mtcars$cyl), hoverinfo = 'text', mode = 'markers', transforms = list( list( type = 'groupby', groups = mtcars$cyl, styles = list( list(target = 4, value = list(marker =list(color = 'blue'))), list(target = 6, value = list(marker =list(color = 'red'))), list(target = 8, value = list(marker =list(color = 'black'))) ) ) ) ) # Create a shareable link to your chart # Set up API credentials: https://plot.ly/r/getting-started chart_link <- api_create(p, filename = "groupby-basic") chart_link
See https://plot.ly/r/reference/ for more information and options!