ggplot2_template: ggplot2 template

Description Usage Examples

View source: R/ggplot2_template.R

Description

This is a template function to use for ggplot2 outputs. Use this as an extension to a ggplot2 script.

Usage

1

Examples

1
2
3
4
5
x_var <- factor(sample(x = 1:2, size = 100, replace = T), label = c('False', 'True'))
y_var <- sample(x = 1:100, size = 100, replace = T)
xy = data.frame(x_var, y_var)

ggplot(xy, aes(x = x_var)) + geom_bar() + ggplot2_template() + ggtitle('False vs True')

mfabla/mikeypkg documentation built on Jan. 26, 2021, 12:26 a.m.