Hi:
scale_manual() is a little tricky when you build the legend from within the
plot. I used shorter labels than you, but this worked for me:
ggplot(mydata, aes(y=score2, x=score1)) +
geom_point() +
stat_quantile(quantiles=c(0.50), aes(colour='red'), size = 1) +
stat_quantile(quantiles=c(0
Hi, all.
I'd like to add legend on my graph but I can't. My code is follows.
library(ggplot2)
score1<-rnorm(100,0,5)
score2<-rnorm(400,10,15)
mydata<-data.frame(score1,score2)
ggplot(mydata,aes(y=score2,x=score1))+geom_point()+stat_quantile(quantiles=c(0.50),col="red")+stat_quantile(quantiles=c(0
2 matches
Mail list logo