ggtheme_threadr: Function for "tufte-like" *ggplot2* appearance.

View source: R/ggtheme_threadr.R

ggtheme_threadrR Documentation

Function for "tufte-like" ggplot2 appearance.

Description

Function for "tufte-like" ggplot2 appearance.

Usage

ggtheme_threadr(grid_lines = FALSE)

theme_super_minimal(grid_lines = FALSE)

colour_byzantine_blue()

colour_crimson()

colour_inferno_purple()

colour_inferno_orange()

colour_inferno_peach()

colours_ggpubr()

colours_plotly()

Arguments

grid_lines

Should the plot have grid lines?

Value

Invisible, modification to a ggplot2 plot.

Author(s)

Stuart K. Grange

Examples


## Not run: 

# Load package
library(ggplot2)

# Create data
data_example <- tibble(
  x = seq(1:3), 
  y = sample(1:10, 3)
)

# Plot with a tufte theme
ggplot(data_example, aes(x, y)) + 
  geom_point() + 
  ggtheme_threadr()
  
# Plot with a super minimal
ggplot(data_example, aes(x, y)) + 
  geom_point() + 
  theme_super_minimal()
  

## End(Not run)


skgrange/threadr documentation built on May 11, 2024, 12:16 p.m.