Learn R Programming

tidyindex (version 0.1.0)

theme_benchmark: A ggplot2 theme for benchmarking the index series

Description

A ggplot2 theme for benchmarking the index series

Usage

theme_benchmark(yintercept = -2, linetype = "dashed")

Value

a ggplot2 object

Arguments

yintercept

intercept

linetype

linetype

Examples

Run this code
if (require("ggplot2", quietly = TRUE) ){
dplyr::tibble(x = 1:100, y = rnorm(100, sd = 2)) |>
  ggplot(aes(x = x, y =y )) +
  geom_line() +
  theme_benchmark()
}

Run the code above in your browser using DataLab