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,theta,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.
thick plot lines
5 messages · Jerome Asselin, Faheem Mitha, Spencer Graves +1 more
Try the "cex" parameter. (See ?par.) Here is an example. par(mfrow=c(2,1)) plot(1,1) plot(1,1,cex=.5) Cheers, Jerome
On April 28, 2003 10:08 pm, Faheem Mitha wrote:
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 at stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
On Tue, 29 Apr 2003, Faheem Mitha wrote:
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,theta,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?
Thanks to the numerous people who replied. I stupidly did not realise that
the parameters lwd and lty would not apply unless I was plotting a line. I
think I assumed that the default points would turn into dashes and also
become smaller or something. :-) I should have realised that line type and
line width meant what they said. Excuse me, it was late at night.
Adding type="line" does indeed work. I suppose that if I wanted to shrink
the points I would use cex?
I think I need to look at a graphing tutorial. I see the "Contributed"
page has
* Using R for Data Analysis and Graphics? by John Maindonald.
* Statistical Computing and Graphics Course Notes? by Frank E.
Harrell.
Any other suggestions? Google (usually invaluable) is useless for this,
since searching for "R" is not very productive. Now if it was only called
SuperDuperStatPackage...
Faheem.
"Modern Applied Statistics with S" provides a reasonable introduction, I think. For people who already know more or less what they want, the documentation for "par" is useful. hth. spencer graves
Faheem Mitha wrote:
On Tue, 29 Apr 2003, Faheem Mitha wrote:
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,theta,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?
Thanks to the numerous people who replied. I stupidly did not realise that
the parameters lwd and lty would not apply unless I was plotting a line. I
think I assumed that the default points would turn into dashes and also
become smaller or something. :-) I should have realised that line type and
line width meant what they said. Excuse me, it was late at night.
Adding type="line" does indeed work. I suppose that if I wanted to shrink
the points I would use cex?
I think I need to look at a graphing tutorial. I see the "Contributed"
page has
* Using R for Data Analysis and Graphics? by John Maindonald.
* Statistical Computing and Graphics Course Notes? by Frank E.
Harrell.
Any other suggestions? Google (usually invaluable) is useless for this,
since searching for "R" is not very productive. Now if it was only called
SuperDuperStatPackage...
Faheem.
______________________________________________ R-help at stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
Faheem Mitha <faheem at email.unc.edu> writes:
On Tue, 29 Apr 2003, Faheem Mitha wrote:
Any other suggestions? Google (usually invaluable) is useless for this, since searching for "R" is not very productive. Now if it was only called SuperDuperStatPackage...
Actually, Google does find a fair number of relevant hits if you look
for "R graphics". It does turn up quite a few registered trademarks
relating to graphics as well, though, and also a couple of curiosities
like
http://members.tripod.com/sandrgraphics/
and
http://www.apl-385.demon.co.uk/rcs/programs/r/gref.htm
O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907