Skip to content
Prev 351766 / 398500 Next

graphs, need urgent help (deadline :( )

For a legend, try (untested)

legend(0.15,0.9,c("factora","factorb","factorc"),col=c(4,2,3),lty=1)

If it overlaps data points move the first two arguments (0.15 and 0.9) around, or change the ?ylim? argument in the plot() to ~1.2.

to avoid clutter, put the line-types information in the figure caption (IMO)