Skip to contents

Applies a specified Plotly theme (as a list) to a Plotly figure object.

Usage

ro_ply_add_theme(fig, theme)

Arguments

fig

A Plotly figure object created by plotly::plot_ly() or similar.

theme

A named list of layout parameters to apply as a theme (e.g., font, colors, margins).

Value

A Plotly figure object with the specified theme applied.

Examples

if (FALSE) { # \dontrun{
fig <- ro_ply_add_theme(fig, theme = theme_rivm)
} # }