Description Usage Arguments Value Examples
Convert a static bubble or grid plot to an interactive, HTML version with embedded hyperlinks.
1 | go_interactive(plot, type, input1, input2)
|
plot |
A ggplot2 object produced from bubble(). |
type |
The type of plot, either 'bubble' or 'grid' (heatmap). |
input1 |
If a bubble plot is provided, this should correspond to the dataframe containing the full plot data. If a grid or heatmap is provided, this should correspond to a vector of URLs, one for each plotted datapoint, listed in the same order as the data provided in the plotted dataframe. |
input2 |
If a bubble plot is provided, this should correspond to the clr_var categorical variable used to colour bubbles. If a grid or heatmap is plotted, this should be left empty. |
An interactive plot object.
1 2 3 4 5 | ## Not run:
go_interactive(plot, type = 'grid', data$url)
go_interactive(plot, type = 'bubble', input1 = data, input2 = loc)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.