0

I'm trying to use the cowplot package in ggplot2 but want to remove both the legend. Here's what I've tried to remove the legend...what am I doing wrong?

p + theme_cowplot() +
    theme(legend.title = element_blank())

If possible, I'd also love to remove the two lines that run along the x axis and y axis (so that the whole background is just white space).

a_todd12
  • 77
  • 6
  • 2
    Add `theme(legend.position = "none")` to whatever plots you're using. There's no data, plotting code, or output here, so nobody can do more than guess as to what you've got that you're trying to change – camille Dec 30 '21 at 02:58

0 Answers0