make_interactive: Makes a ggplot interactive using ggplotly.

Description Usage Arguments

View source: R/plotting.R

Description

Note that in order for these plots to render properly in knitted RMarkdown documents, you have to actually load the plotly library in your code. Not doing it in this function itself because it's generally considered bad practice.

Usage

1
2
3
4
5
6
make_interactive(
  p = ggplot2:::last_plot(),
  tooltip = tooltip_default(),
  theme = theme_bw(),
  plus = NULL
)

Arguments

p

the ggplot to make interactive, by default the last plot

tooltip

vector of mouseover text to include (x, y, size, fill, text) and which order. By default, shows only "text" aesthetic if it is mapped, otherwise shows all.

theme

the theme to apply, theme_bw is the default

plus

additional ggplot items to add to the plot


sebkopf/isorunN2O documentation built on April 18, 2021, 6:57 p.m.