plot_nolegend: No Legend Plots

View source: R/plots.R

plot_nolegendR Documentation

No Legend Plots

Description

This is a function that strips the plot of its legend.

Usage

plot_nolegend(p)

Arguments

p

The plot that we will strip its legend of.

Examples

library(ggplot2)
p <- ggplot(diamonds, aes(depth, colour = cut)) +
  geom_density()
plot_nolegend(p)

sysilviakim/Kmisc documentation built on Jan. 28, 2023, 10:58 a.m.