remove_axes: Quickly remove plot axes and grids

View source: R/themes.R

remove_axesR Documentation

Quickly remove plot axes and grids

Description

remove_axes() and remove_grid() are convenience functions that removes the axes and grids from a ggplot, respectively. This is useful when you want to use an existing theme, e.g. those included in ggplot2, for a DAG.

Usage

remove_axes()

remove_grid()

Examples

library(ggplot2)
ggdag(confounder_triangle()) +
  theme_bw() +
  remove_axes()


ggdag documentation built on Sept. 11, 2024, 6:12 p.m.