plot_nolegend | R Documentation |
This is a function that strips the plot of its legend.
plot_nolegend(p)
p |
The plot that we will strip its legend of. |
library(ggplot2) p <- ggplot(diamonds, aes(depth, colour = cut)) + geom_density() plot_nolegend(p)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.