fig.pretty: Make 'ggplot' Pretty

Description Usage Arguments Examples

View source: R/fig.R

Description

Make ggplot Pretty

Usage

1
fig.pretty(ggplot, col = FALSE, rotate.x = FALSE)

Arguments

ggplot

A ggplot object.

col

A boolean. Toggles whether to color the figure with viridis.

rotate.x

A boolean. Toggles whether to rotate the x-axis.

Examples

1
2
3
4
5
6
## Not run: 
p <- ggplot(mtcars, aes(wt, mpg, col = cyl))
p <- p + geom_point()
fig.pretty(p, col = TRUE)

## End(Not run)

tpq/miSciTools documentation built on Sept. 16, 2019, 4:43 p.m.