[R] mixing different modes of lty line type specification in legend() ?

Ko-Kang Kevin Wang Ko-Kang at xtra.co.nz
Wed Jun 5 12:42:53 CEST 2002


Hi,

----- Original Message -----
From: "Marcus Eger" <eger.m at gmx.de>
To: "r-help" <r-help at stat.math.ethz.ch>
Sent: Wednesday, June 05, 2002 10:06 PM
Subject: [R] mixing different modes of lty line type specification in
legend() ?


> Hi List,
> is sth. like the following possible:
>
> legend(x,y,c("A","B","C"), lty=list(1,"42","11")) ?

I am assuming you want to fit the three lines with line type 1, 42, and 11?

If this is so you need something like:
  legend(x,y,c("A","B","C"), lty=c(1,42,11))

Or you can use:
  legend(x,y,c("A","B","C"), lty=c("solid", "dotted", "dashed"))
which draws solid line for A, dotted line for B and dashed line for C.

I hope this is what you want :-)

Cheers,

Ko-Kang Wang

---------------------------------------------
Ko-Kang Kevin Wang
Post Graduate PGDipSci Student
Department of Statistics
University of Auckland
New Zealand

www.stat.auckand.ac.nz/~kwan022


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list