plotflow (version 0.2.1)

theme_basic: ggplot2 Theme with No Background or Gridlines.

Description

A ggplot2 theme with no background and no gridlines.

Usage

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.

See Also

theme

Examples

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab