Description Usage Arguments Note See Also Examples
A ggplot2 theme with no background and no gridlines.
1 | theme_basic(x = FALSE, y = FALSE, plot.box = FALSE)
|
x |
logical. If |
y |
logical. If |
plot.box |
logical. If |
Both x and y can not be TRUE
. Use
theme_bw
instead.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.