Hi
I got warning messages after typing code:
Warning: Ignoring unknown aesthetics: colours
stat_bin()
using bins = 30
. Pick better value with binwidth
.
My R Code is
w<-read.csv(file="Satisfaction.csv",head=TRUE,sep=",")
p<-ggplot(data=w,aes(x=LE))
p+geom_freqpoly(aes(colors=Country))
print(p + geom_freqpoly(aes(colors=Country))+ggtitle("Jielan Liu Question 10")+theme(plot.title=element_text(hjust=0.5)))
The file="Satisfaction.csv" contains columns ID, Country, Continent, LE, WellBeing, Ecological Footprint, HPI. So I want to make the line has different colours based on Country. However, it doesn't read through. Second, I think I need to change the scale of Y axis by using stat_bin("bins = 30").
Please help!