Hello all, I'm trying to completely remove the legend in my plot but I'm
failing. I have this code:
ggplot(acno, aes(x=survey_year, y=item_displ, color=as.factor(item_id)))
+
geom_line() +
theme(legend.position="none")
The last line gives this message:
Error: ggplot2 doesn't know how to deal with data of class uneval
I have also tried:
scale_color_discrete(guide=FALSE)
and
guides(color=FALSE)
but they all give the same error. Anyone have a clue?
TIA.
--
Stuart Luppescu <
s...@ccsr.uchicago.edu>
University of Chicago