plotly (version 3.6.0)

layout: Add and/or modify layout of a plotly

Description

Add and/or modify layout of a plotly

Usage

layout(p = last_plot(), ..., data = NULL, evaluate = FALSE)

Arguments

p

A plotly object.

...

Arguments to the layout object. For documentation, see https://plot.ly/r/reference/#Layout_and_layout_style_objects

data

A data frame to associate with this layout (optional). If not provided, arguments are evaluated using the data frame in plot_ly().

evaluate

logical. Evaluate arguments when this function is called?