<html><body><div style="color:#000; background-color:#fff; font-family:verdana, helvetica, sans-serif;font-size:8pt"><div style="font-family: verdana, helvetica, sans-serif; font-size: 8pt;"><span><br></span></div><div style="font-family: verdana, helvetica, sans-serif; font-size: 8pt;"></div><div style="font-family: verdana, helvetica, sans-serif; font-size: 8pt;"> Olá pessoal boa tarde, estou com o seguinte problema. estou fazendo um gráfico no ggplot dessa forma:</div><div style="font-family: verdana, helvetica, sans-serif; font-size: 8pt;"><br></div><div style="font-family: verdana, helvetica, sans-serif; font-size: 8pt;"><br></div><div><div><span style="font-size: 11px;">c <- ggplot(data2.masc.3raca, aes(y=Pasajuste.masc, x=IDADEA, linetype=factor(Cor2)))</span></div><div><span style="font-size: 11px;"><br></span></div><div><span style="font-size: 11px;">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")</span></div><div style="font-family: verdana, helvetica, sans-serif; font-size: 8pt;"><br></div><div style="font-family: verdana, helvetica, sans-serif; font-size: 8pt;"><br></div><div style="font-family: verdana, helvetica, sans-serif; font-size: 8pt;"><br></div><div style="font-family: verdana, helvetica, sans-serif; font-size: 8pt;">Na legenda sempre sai o factor(Cor2) e quero que saia Ethnicity</div><div style="font-family: verdana, helvetica, sans-serif; font-size: 8pt;"><br></div><div style="font-family: verdana, helvetica, sans-serif; font-size: 8pt;"><br></div></div> </div></body></html>