plot_ly

plot_ly(data = data.frame(), ..., type = NULL, color, colors = NULL,
  alpha = 1, symbol, symbols = NULL, size, sizes = c(10, 100), linetype,
  linetypes = NULL, split, frame, width = NULL, height = NULL,
  source = "A")

Examples

library(ggplot2) p <- plot_ly(economics, x = ~date, y = ~pop) p$elementId <- "plotly" p
#> No trace type specified: #> Based on info supplied, a 'scatter' trace seems appropriate. #> Read more about this trace type -> https://plot.ly/r/reference/#scatter
#> No scatter mode specifed: #> Setting the mode to markers #> Read more about this attribute -> https://plot.ly/r/reference/#scatter-mode