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
> 
> ______________________________________________
> [email protected] 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.

______________________________________________
[email protected] 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.

Reply via email to