panel_border | R Documentation |
A simple ggplot2
theme which replaces the axis lines with
a bordered panel.
panel_border(base_size = 12, base_color = NULL)
base_size |
A numeric. Base size. Used to calculate line size and spacing. |
base_color |
A character. Base color for lines. |
This should be placed after the primary theme for the plot.
library(ggplot2) ggplot(datasets::mtcars, aes(x = wt, y = hp, color = as.factor(cyl))) + geom_point() + facet_wrap(~as.logical(am)) + theme_basic() + panel_border()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.