A modern, sleek and dark theme for ggplot.
theme_blackboard(
base_size = 11,
base_family = "",
plot.title.size = 15,
plot.title.face = "plain",
plot.title.space = 20,
plot.title.position = "plot",
legend.position = "right",
axis.title.space = 20,
legend.title.size = 13,
legend.text.size = 12,
axis.title.size = 13,
axis.title.face = "plain",
axis.text.size = 12,
axis.text.angle = NULL,
tags.size = 15,
tags.face = "bold"
)
base font size, given in pts.
base font family
Title size in pts. Can be "none".
Title font face ("plain", "italic", "bold", "bold.italic").
Title spacing.
Alignment of the plot title/subtitle and caption. The setting for plot.title.position applies to both the title and the subtitle. A value of "panel" (the default) means that titles and/or caption are aligned to the plot panels. A value of "plot" means that titles and/or caption are aligned to the entire plot (minus any space for margins and plot tag).
the default position of legends ("none", "left", "right", "bottom", "top", "inside")
Axis title spacing.
Legend elements text size in pts.
Legend elements text size in pts. Can be "none".
Axis title text size in pts.
Axis font face ("plain", "italic", "bold", "bold.italic").
Axis text size in pts.
Rotate the x axis labels.
Tags text size in pts.
Tags font face ("plain", "italic", "bold", "bold.italic").
library(ggplot2)
library(see)
ggplot(iris, aes(x = Sepal.Width, y = Sepal.Length)) +
geom_point(color = "white") +
theme_blackboard()
Run the code above in your browser using DataLab