theme_base: Custom Minimal Theme for ggplot2

theme_baseR Documentation

Custom Minimal Theme for ggplot2

Description

Creates a custom theme based on theme_minimal with specific text sizes and no legend by default

Usage

theme_base

Arguments

base_size

Base font size, default is 12

legend_position

Position of the legend ("none", "left", "right", "bottom", "top"), default is "none"

Format

An object of class theme (inherits from gg) of length 136.

Value

A ggplot2 theme object

Examples

## Not run: 
library(ggplot2)

# Basic usage
ggplot(mtcars, aes(wt, mpg)) +
  geom_point() +
  theme_my()
  
# With legend
ggplot(mtcars, aes(wt, mpg, color =factor(cyl))) +
  geom_point() +
  theme_my(legend_position ="right")

## End(Not run)


laurieKell/FLCandy documentation built on April 17, 2025, 5:23 p.m.