[R] scatterplot function - double check: dashed lines

From: K F Pearce <k.f.pearce_at_newcastle.ac.uk>
Date: Tue, 08 Jun 2010 11:44:56 +0100

Hello everyone,

This is just a quick double check. It concerns the 'scatterplot function' in R.

 I have 6 curves and I wish to represent each of them by a different kind of line (their colour must be black).

The curves are derived from the cuminc function...the coordinates of which are in 'xx'.

Upon reading the documentation in R, it looks like I can use the 'on/off' command for lty and I can merely run:


according to the documentation, "13" (for example) means 1 'on' and 3 'off' .

Does the above look OK ?

Say, in another study, I wish to draw my 6 lines all in different colours (solid lines), I suppose that I could type:

plot(xx, color=c("red","black","purple","yellow","brown","violet"), lty=1)

Thanks so much for your help,
All the Best,

R-help_at_r-project.org 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. Received on Tue 08 Jun 2010 - 11:49:26 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 09 Jun 2010 - 09:00:29 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive