RE: [R] thick plot lines

About this list Date view Thread view Subject view Author view Attachment view

From: Adaikalavan Ramasamy (gisar@nus.edu.sg)
Date: Tue 29 Apr 2003 - 16:02:33 EST


Message-id: <024D6AEFCB92CB47BA1085751D184BB80105F24C@MBXSRV03.stf.nus.edu.sg>

Please give us a reproducible example. I don't know of cdf.inv, theta,
empmargdistvec, ...

Why should qqplot produce lines ? If you meant to say the axis, then
look under axis(). If you meant the plotting symbols, then use the pch
argument as bellow. One trick would be to plot using the character '.'
instead.

y <- rt(200, df = 5)
qqplot(y, rt(300, df = 5), pch=".")

If you meant the qqline, then you can supply the lty, col argument
inside qqline().

y <- rt(200, df = 5)
qqnorm(y)
qqline(y, col = 2, lty=3)

Reading par() might be useful.

Regards, Adai.

-----Original Message-----
From: Faheem Mitha [mailto:faheem@email.unc.edu]
Sent: Tuesday, April 29, 2003 1:09 PM
To: r-help@stat.math.ethz.ch
Subject: [R] thick plot lines

Dear People,

In a qqplot I am doing, I get lines/points that are very thick. I've
tried setting the lwd variable to 0.1, but it doesn't seem to have any
effect. Also, I have set the value of lty to dashed, but I still get
dots. The command looks like

qqplot(cdf.inv(seq(0,1,length=size),theta,pos,len),empmargdistvec(len,th
eta,pos,size),
       xlim=c(-theta,theta), ylim=c(-theta,theta), lwd=0.1,
       xlab="Marginal Quartiles", ylab="Empirical Marginal", col="red",
lty="dashed")

I tried putting

par(lty="dashed",lwd=0.1)

before this, but this doesn't have any effect either.

I'm now wondering if I am doing something wrong. Does qqplot perhaps not
accept these parameters? What should I do to make the lines/points
thinner?

                                              Faheem.

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Tue 01 Jul 2003 - 09:11:44 EST