[R] GDD and dashed lines (lty=2)

From: Charles Annis, P.E. <Charles.Annis_at_statisticalengineering.com>
Date: Fri, 14 Mar 2008 10:02:31 -0400


Greetings, R Aficionados:  

I'm running R2.6.2 on a DELL WinXP box with 2 Gig RAM.  

My package GDD renderings of dashed lines aren't dashed. abline() will produce a dashed line, but lines() won't. Here is some illustrative code:  

library(GDD)

GDD("dashed line", type="gif", width=480, height=480)

par(mar = c(4.5, 5, 2.5, 1) + 0.1)

plot(x=1:10, y=1:10, pch=16, las=1)

abline(a=0, b=1, lty=2)

lines(x=seq(1,10, length=2), y=1+seq(1,10, length=2), col="red", lty=2)

dev.off()  

I experimented with the lines() length parameter thinking that perhaps having too many line segments was the problem, but even with length=2 the lines are not dashed.  

Any suggestions?  

Charles Annis, P.E.  

Charles.Annis_at_StatisticalEngineering.com

phone: 561-352-9699

eFax: 614-455-3265

http://www.StatisticalEngineering.com    

        [[alternative HTML version deleted]]



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 Fri 14 Mar 2008 - 14:13:47 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 Fri 14 Mar 2008 - 14:30:21 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