theme_basic: Basic ggplot2 theme

View source: R/color_functions.R

theme_basicR Documentation

Basic ggplot2 theme

Description

Basic ggplot2 theme

Usage

theme_basic(
  fontsize = 18,
  fontfamily = "",
  lwd = NULL,
  color = "black",
  grid.color = NULL,
  title.face = "bold",
  title.cex = 1,
  axis.title.cex = 1,
  axis.text.cex = 0.8,
  grid.cex = 0.7,
  ...
)

Arguments

fontsize

Base font size

fontfamily

Base font family

lwd

Base linewidth

color

Base color

grid.color

Grid color (no grid if NULL)

title.face

Title face (plain/bold/...)

title.cex

Title size factor

axis.title.cex

Axis title size factor

axis.text.cex

Axis text size factor

grid.cex

Grid linewidth size factor

...

other parameters passed to theme(...)

Examples

ggplot(iris, aes(Sepal.Length, Petal.Length)) + geom_point() + ggtitle("Iris") + theme_basic()
ggplot(iris, aes(Sepal.Length, Petal.Length, color = Species)) + geom_point() + ggtitle("Iris") + theme_basic(grid.color = "grey70")

AlexanderKirchmair/datamisc documentation built on June 13, 2025, 5:26 a.m.