theme_basic: ggplot2 Theme with No Background or Gridlines.

Description Usage Arguments Note See Also Examples

Description

A ggplot2 theme with no background and no gridlines.

Usage

1
theme_basic(x = FALSE, y = FALSE, plot.box = FALSE)

Arguments

x

logical. If TRUE vertical gridlines are added.

y

logical. If TRUE horizontal gridlines are added.

plot.box

logical. If TRUE a full box surrounds the plot area. If FALSE only the x and y axis are shown.

Note

Both x and y can not be TRUE. Use theme_bw instead.

See Also

theme

Examples

1
2
3
4
ggplot(mtcars, aes(factor(cyl))) + geom_bar() + theme_basic()
ggplot(mtcars, aes(factor(cyl))) + geom_bar() + theme_basic(x = TRUE)
ggplot(mtcars, aes(factor(cyl))) + geom_bar() + theme_basic(y = TRUE)
ggplot(mtcars, aes(factor(cyl))) + geom_bar() + theme_basic(x = TRUE, y = TRUE)

trinker/plotflow documentation built on May 31, 2019, 9:42 p.m.