Skip to content
Prev 159325 / 398500 Next

R plot

Hi,

Personally I always use xlim and ylim with the plot or points function like
that:

plot(	X,Y,pch=16,col=2,cex.axis=1.5,cex.lab=1.5,
	xlim=c(0,1.05*max(X)),ylim=c(0,1.05*max(Y))
	)


Regards/Cordialement


Benoit Boulinguiez 


-----Message d'origine-----
De : r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] De
la part de Wacek Kusnierczyk
Envoy? : vendredi 17 octobre 2008 10:47
? : Haoda Fu
Cc : R help
Objet : Re: [R] R plot
Haoda Fu wrote:
if you know the range in advance, you can specify it using the xlim and ylim
parameters to plot.  you can also use them in points (it doesn't cause an
error), but it does not seem to have the desired effect of reshaping the
plot.

it's perhaps a pity it works this way, but you have to get used to it. 
or drop r if you find matlab better.


vQ

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