plotly (version 2.0.2)

layer2traces: Convert a layer to a list of traces. Called from gg2list()

Description

Convert a layer to a list of traces. Called from gg2list()

Usage

layer2traces(l, d, misc)

Arguments

l
one layer of the ggplot object
d
one layer of calculated data from ggplot2::ggplot_build(p)
misc
named list of plot info, independent of layer.

Value

  • list representing a layer, with corresponding aesthetics, ranges, and groups.