Learn R Programming

cartographr (version 0.2.4)

theme_poster: Create a poster theme

Description

This function generates a 'ggplot2' theme that resembles a poster style. It is designed to be used with 'ggplot2' plots to provide a clean and bold aesthetic suitable for poster visuals.

Usage

theme_poster(font = "Poppins")

theme_poster_poppins()

theme_poster_anton()

theme_poster_cinzel()

theme_poster_barlow()

Value

A 'ggplot2' theme object that can be added to 'ggplot2' plotting calls.

Arguments

font

The font family to be used for text elements in the plot. The default font is set to "Poppins".

Details

theme_poster_poppins(), theme_poster_anton() are aliases to theme_poster("Poppins"), etc.

Examples

Run this code
data("osm")
my_map <- osm |> plot_map() +
 theme_poster()

Run the code above in your browser using DataLab