hello people, trying use geom_line function create line graphs in r. want assign specific colours each line , unable so. when try manually assign colours colour names variables , in legend arranged alphabetically. if don't don't colours @ all. looked around on web , noticed there should grouping variable colours can assigned. unfortunately, in dataset here, each column corresponds different variable. not sure transposing dataset work because trying plot these variables against >2000 values on x-axis. think missing simple here. ggplot(data=data, aes(xvar))+ geom_line(aes(y=var1))+ geom_line(aes(y=var2))+ geom_line(aes(y=var3))+ geom_line(aes(y=var4)) please feel free redirect section if has been answered before. appreciated. i able manually without using ggplot2 function code follows: plot(data$wavelength,data$var1,col="green") par(new=t) plot(data$wavelength,data$var2,col="red") par(new=t) plot(data$wavelength,data$var3,col=...