dot-prep_aes: Prepare 'ggplot2' geom_ defaults

.prep_aesR Documentation

Prepare 'ggplot2' geom_ defaults

Description

ggplot2 geoms have default aesthetics which can be changed for each session. This function is a generalised way to set geom defaults. It only changes settings where the default is not NA; no need for geom_point to have a default font family.

Usage

.prep_aes(geom, aes, setting)

Arguments

geom

(character) the geom to change (e.g. point or line)

aes

(character) the aesthetic to change (e.g. colour or alpha)

setting

(various) what to set the aesthetic (e.g. a colour or a number)

Details

This is used inside '.set_grattab_aesthetics()'

Value

the default aesthetic ready to be set


MattCowgill/grattantheme documentation built on Jan. 13, 2023, 11:02 a.m.