Can anyone illuminate the following for me?
How can I get rid of the blue line in the key in the second plot?

## Create a simple data frame
df=data.frame(x=1:1000, y=2*1:1000+rnorm(1000,sd=1000),
        type=sample(letters[1:2],1000, replace=TRUE))

## Very nice!  Almost what I want
qplot(x, y, data=df, colour=factor(type)) + geom_smooth()

## Make a nicer plot, with smaller points
## but why does that add the little blue line with a 1?
qplot(x, y, data=df, colour=factor(type), size=1) + geom_smooth()

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to