View source: R/layers2traces.R
to_basic | R Documentation |
This function makes it possible to convert ggplot2 geoms that are not included with ggplot2 itself. Users shouldn't need to use this function. It exists purely to allow other package authors to write their own conversion method(s).
to_basic(data, prestats_data, layout, params, p, ...)
data |
the data returned by |
prestats_data |
the data before statistics are computed. |
layout |
the panel layout. |
params |
parameters for the geom, statistic, and 'constant' aesthetics |
p |
a ggplot2 object (the conversion may depend on scales, for instance). |
... |
currently ignored |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.