Makes a ggplot2 figure interactive using plotly
Usage
plotly_figure(data, fig = "timeseries_fig", height = NULL, ...)
Arguments
- data
Data frame to use.
- fig
A character vector with the figure function to use.
- height
Height of the plot.
- ...
Other variables, passed onto the figure functions that are called to create the plots.