| theme_brand_plotly | R Documentation |
Apply brand colors to a plotly plot.
theme_brand_plotly(
plot,
brand = NULL,
background = NULL,
foreground = NULL,
accent = NULL
)
plot |
A plotly plot object to theme. |
brand |
One of:
|
background |
The background color, defaults to |
foreground |
The foreground color, defaults to |
accent |
The accent color, defaults to |
Returns a themed plotly plot object.
Other branded theming functions:
theme_brand_flextable(),
theme_brand_ggplot2(),
theme_brand_gt(),
theme_brand_thematic()
brand <- as_brand_yml('
color:
palette:
black: "#1A1A1A"
white: "#F9F9F9"
orange: "#FF6F20"
foreground: black
background: white
primary: orange')
library(plotly)
plot_ly(palmerpenguins::penguins, x = ~bill_length_mm, y = ~bill_depth_mm) |>
theme_brand_plotly(brand)
brand <- as_brand_yml('
color:
palette:
black: "#1A1A1A"
white: "#F9F9F9"
orange: "#FF6F20"
foreground: black
background: white
primary: orange')
library(plotly)
plot_ly(mtcars, x = ~wt, y = ~mpg) |>
theme_brand_plotly(brand)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.