man/examples/theme_line_dft.R

## Simple line plot using standard line theme with default options

library(ggplot2)

df <- economics_long[economics_long$variable %in% c("psavert", "uempmed"), ]

# plot
ggplot(df, aes(x=date, y=value, col=variable, label=variable)) +
  geom_line(size = 1) +
  theme_line_dft()
department-for-transport/dftplotr documentation built on April 3, 2024, 3:55 p.m.