Olá pessoal boa tarde, estou com o seguinte problema. estou fazendo um gráfico no ggplot dessa forma:
c <- ggplot(data2.masc.3raca, aes(y=Pasajuste.masc, x=IDADEA, linetype=factor(Cor2)))
p6<-c + stat_smooth(se = FALSE,method="loess",span=0.75,color="Black")+
xlab("years")+ylab("Systolic blood pressure (mmHg)")+scale_colour_hue(name="Ethnicity")+xlim(35,74)+ylim(105,130)+labs(title = "Male")
Na legenda sempre sai o factor(Cor2) e quero que saia Ethnicity