theme_IMD: theme_IMD: custom ggplot2 theme for testpackage

Description Usage Value Examples

View source: R/theme_IMD.R

Description

This is a custom ggplot2 theme that removes the default panel grids from ggplot2 figures, and makes the axes and tick marks grey instead of black.

Usage

1

Value

This function must be used in conjunction with a ggplot object, and will return a ggplot object with the custom theme.

Examples

1
2
3
4
5
6
7
8
9
example_dat <- data.frame(Latin_Name = c("Carex limosa", "Arethusa bulbosa",
                                         "Malaxis unifolia", "Calopogon tuberosus"),
                          cover = c(10, 40, 10, 50),
                          stems = c(50, 20, 10, 10))
library(ggplot2)
p <- ggplot(data = example_dat, aes(x = cover, y = stems)) +
     geom_point() +
     theme_IMD()
p

KateMMiller/testpackage3 documentation built on Jan. 17, 2022, 12:24 a.m.