10.6 Two ways of setup

  1. plot_ly(...) %>% add_trace(...) %>% add_layout(...)
  2. Store in Plotly object
    • p <- plot_ly(...)
    • p <- add_trace(p, ...)
    • p <- add_layout(p, ...)
    • p