brand_plot: Function to apply SP branding to the plot

Description Usage Arguments Value Examples

View source: R/brand_plot.R

Description

Function to apply SP branding to the plot

Usage

1
brand_plot(plot_name)

Arguments

plot_name

The variable name of the plot created that you intend to apply branding too.

Value

branded ggplot.

Examples

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)

spatels/spplot documentation built on Dec. 23, 2021, 4:24 a.m.