Support plotly for GeomShape
# S3 method for GeomShape to_basic(data, prestats_data, layout, params, p, ...)
data, prestats_data, layout, params, p, ... | arguments provided
by plotly during rendering, after stats have been applied.
Currently only |
---|
This function is a helper function intended to provide a simple
but not fully-equivalent link between ggforce::geom_shape()
and
plotly::ggplotly()
. This function converts data to
ggplot2::geom_polygon
which is sufficient for the splicejam
package, but which does not provide the extra effects from
ggforce::geom_shape()
such as rounded corners or resizing.
This function may be extended then submitted to
the ggforce
package to assist plotly support.
This function is exported, since otherwise it caused problems
when invoking plotly::ggplotly()
and this function was not
consistently used in that process for some reason.
Other jam ggplot2 functions:
gene2gg()
,
geom_diagonal_wide_arc()
,
plotSashimi()
,
splicejam-extensions