10.5 Basic functions

  • plot_ly(): Transform data into a plotly visualization
    • plot_geo(): For initializing a plotly-geo object
    • ggplotly(): For translating a ggplot2 object to a plotly object
    • layout(), add_trace(), style(): For modifying any plotly object
    • plotly_empty(): Generate empty plot
  • add_trace(p, ..., data = NULL, inherit = TRUE): Add trace(s) to a plotly visualization
    • add_markers(), add_text(), add_lines(): See ?add_trace
  • layout(p, ..., data = NULL): Modify the layout of a plotly visualization
  • style(p, ..., traces = 1): Modify trace(s) of an existing plotly visualization
  • How can we read: https://plot.ly/r/reference/ ?
  • Most graph parameters are added directly in the plot_ly() function or afterwards