[R] thick plot lines

Adaikalavan Ramasamy gisar at nus.edu.sg
Tue Apr 29 08:02:33 CEST 2003

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 '.'

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)
qqline(y, col = 2, lty=3)

Reading par() might be useful.

Regards, Adai.

-----Original Message-----
From: Faheem Mitha [mailto:faheem at email.unc.edu] 
Sent: Tuesday, April 29, 2003 1:09 PM
To: r-help at 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

       xlim=c(-theta,theta), ylim=c(-theta,theta), lwd=0.1,
       xlab="Marginal Quartiles", ylab="Empirical Marginal", col="red",

I tried putting


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


R-help at stat.math.ethz.ch mailing list

More information about the R-help mailing list