[R] Detailed legend in mathplot ...

Uwe Ligges ligges at statistik.uni-dortmund.de
Wed Mar 21 09:37:23 CET 2007



Petar Milin wrote:
> Hello,
> Recently, I have asked for a help with building graphs, and I got few
> great advices. Now, my appetite is growing :) and I wander how to add
> legend for two (or more) lines in following example:
> 
> matplot(DAT[, c(3,4)], type="b", ylim=c(0,8), xaxt="n", yaxt="n",
>  + pch=c(21,22), col="black", lty=c("dashed","solid"), xlab="", ylab="")
> title(ylab="% correct", xlab="Trial", cex.lab=1.5)
> axis(1, at=1:4, labels=as.character(DAT$Trial), cex.axis=1.5)
> axis(2, cex.axis=1.5)
>

We do not have DAT, why don't you make it easier for us to help by 
specifying a very tiny data.frame that fits to your code?

Best,
Uwe Ligges


> 
> Sincerely,
> Petar
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list