Reputation: 765
I wish to do this instead of doing subsets so that my confidence intervals reflect all of the data. (I'm plotting lines one by one on a powerpoint.)
Basically, I need to just have one line be completely invisible.
I've tried
scale_color_manual(values=c("black", "transparent"))
which seems to do the trick, unless the transparent line overlaps another, in which case it makes it lighter. "none" and "invisible" are not defined color values in R. Advice?
Thanks!
Upvotes: 3
Views: 2321
Reputation: 145755
You can specify NA
as a color if you just don't want something plotted:
values = c("black", NA)
Upvotes: 6