Description Usage Arguments Value Examples
Function to apply SP branding to the plot
1 | brand_plot(plot_name)
|
plot_name |
The variable name of the plot created that you intend to apply branding too. |
branded ggplot.
1 2 3 4 5 6 7 8 9 | sp <- ggplot2::ggplot(ggplot2::diamonds, ggplot2::aes(x=carat, y=price, color=cut)) +
ggplot2::geom_point() +
sp_theme() +
ggplot2::labs(title="This is my title",
subtitle = "This is my subtitle",
caption = "Source: this is my data source",
x="Carat",
y="Price")
brand_plot(plot_name = sp)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.