lunaize: Re-theme plot a la Luna This function stylizes a ggplot2 plot...

View source: R/lunaize.R

lunaizeR Documentation

Re-theme plot a la Luna This function stylizes a ggplot2 plot to match the aesthetic of Dr. Luna * Removes grid lines and borders * Increases font size * Increases gap between x and y axis titles (by adding "\n" to the labels)

Description

Re-theme plot a la Luna This function stylizes a ggplot2 plot to match the aesthetic of Dr. Luna * Removes grid lines and borders * Increases font size * Increases gap between x and y axis titles (by adding "\n" to the labels)

Usage

lunaize(p, ajust = 0.05)

Arguments

p

plot to retheme

ajust

vjust and hjust values for axis text Defauts to .05

Examples

p <- ggplot(iris,aes(x=Sepal.Length,y=Petal.Width))+geom_point()
lunaize(p) # or with magrittr/dplyr: p %>% lunaize

LabNeuroCogDevel/LNCDR documentation built on Oct. 13, 2023, 4:31 a.m.