Convert a "basic" geoms to a plotly.js trace.
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).
geom2trace(data, params, p)
the data returned by
parameters for the geom, statistic, and 'constant' aesthetics
a ggplot2 object (the conversion may depend on scales, for instance).