Re: [R] symbol size in plot

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

From: Petr Pikal (petr.pikal@precheza.cz)
Date: Thu 20 May 2004 - 18:13:19 EST


Message-id: <40AC84BF.6755.8D1222@localhost>


On 19 May 2004 at 12:04, Ulrich Leopold wrote:

> Dear list,
>
> I have been reading the archives already but I do not manage to plot
> the correct size of symbols without running into other problems.
>
> When I use the syntax below I get the size of symbols and text right
> but the text overlays on top of the axis rather than be in the right
> position when you using the defaults for plot. Furthermore the ticks
> of the axis appear to be too small. Is there a way of getting things
> correct like in the default plot?

Hi

I am not sure what do you want to accomplish. What is wrong on default plot.
If you want to shrink just points use cex in

par(mfrow=c(2,2))
plot(x,y, pch=16, cex=0.2)

and if you want to enlarge some characters in plot use cex.axis or cex....
according to par help page

e.g.

plot(x,y, pch=16, cex=0.2, cex.lab=2, cex.axis=2)

par(mfrow=c(2,2))
plot(1:10,1:10)
plot(1:10,1:10, cex=.2)
plot(1:10,1:10, cex=.2, cex.axis=2)
plot(1:10,1:10, cex=.2, cex.axis=2, cex.lab=2)

I suppose that in your definition of par you first shrink all points and characters in
plot to 0.2 of their default size and then you increase the size of some 5 times e.g.
to the default size, but I may be wrong.

Cheers
Petr

>
>
> par(mfrow=c(2,2),cex=0.2, cex.main=5, cex.sub=5, cex.axis=5,pch=16)
> plot(x,y)
>
>
>
> Regards, Ulrich
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html

Petr Pikal
petr.pikal@precheza.cz

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


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

This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:11 EST