Skip to contents

Wrapper for ggplotly that applies the standard irishbuoys theme. Useful when converting ggplot2 plots to plotly.

Usage

irishbuoys_ggplotly(gg, title = NULL, ...)

Arguments

gg

A ggplot2 object

title

Optional title to override ggplot title

...

Additional arguments passed to plotly::ggplotly()

Value

A styled plotly object

Examples

if (FALSE) { # \dontrun{
p <- ggplot2::ggplot(mtcars, ggplot2::aes(wt, mpg)) +
  ggplot2::geom_point()
irishbuoys_ggplotly(p)
} # }