KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
with ggplot2, I make the following density plot: ggplot(iris) + geom_density(aes(x=Sepal.Width, colour=Species)) The colour legend (for each Species value) appears as a box with a line through it, but the density plotted is a line. Is there a way to make the legend appear as just a colored line for each entry of Species, rather than a box with a line through it?
Tags (comma-separated)
Save Edits
Cancel