theme_blinds: the theme of blind-like

View source: R/theme.R

theme_blindsR Documentation

the theme of blind-like

Description

the theme of blind-like

Usage

theme_blinds(colour = c("white", "grey"), axis = "y", ...)

Arguments

colour

the colour of rectangular, default is c('white', 'grey60').

axis

character which grid of axis will be filled, default is 'y'.

...

additional parameters that passed to theme function.

Value

ggplot2 theme

Examples

library(ggplot2)
iris |> tidyr::pivot_longer(
    cols = !Species,
    names_to = 'var',
    values_to = 'value'
  ) |>
ggplot(
  aes(x=var, y=Species, color=value, size=value)
) +
geom_point() -> p
p +
theme_blinds(
  colour = c('grey90', 'white'),
  axis = 'y',
  axis.line.y=element_line()
)
p +
theme_blinds(
  colour = c('grey90', 'white'),
  axis = 'x',
  axis.line.x = element_line()
)

ggfun documentation built on Oct. 30, 2024, 9:13 a.m.