10.4 Basic workings

  • Plotly charts are described declaratively in the call signature (function) of plotly::plot_ly, plotly::add_trace, and plotly::layout

  • Every aspect of a plotly chart (the colors, the grid-lines, the data, and so on) has a corresponding key in these call signatures

  • Plotly’s graph description places attributes into two categories

    • traces which describe a single series of data in a graph + layout attributes that apply to the rest of the chart, like the title, xaxis, or annotations
  • More in the R figure reference and plotly for R