Skip to contents

Applies consistent dark styling to all plotly plots in the irishbuoys package. Uses black background with white grid lines to match the Quarto cosmo dashboard theme. Bottom-positioned horizontal legend with dark hoverlabels.

Usage

irishbuoys_layout(p, title = NULL, ...)

Arguments

p

A plotly object

title

Optional title string

...

Additional arguments passed to plotly::layout()

Value

A styled plotly object

Examples

if (FALSE) { # \dontrun{
library(plotly)
p <- plot_ly(data = mtcars, x = ~wt, y = ~mpg, type = "scatter", mode = "markers")
p |> irishbuoys_layout(title = "Weight vs MPG")
} # }