go_interactive: Interactive bubble and grid evidence map

Description Usage Arguments Value Examples

Description

Convert a static bubble or grid plot to an interactive, HTML version with embedded hyperlinks.

Usage

1
go_interactive(plot, type, input1, input2)

Arguments

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.

Value

An interactive plot object.

Examples

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)

nealhaddaway/evimappr documentation built on Jan. 1, 2021, 11:36 a.m.