[R] adjustment on the x-axis scale width

Greg Snow Greg.Snow at imail.org
Thu Jan 24 17:36:57 CET 2008


Specify xlim and ylim in the plot function to set the limits on the x/y
axis.  See ?plot.default for details.

-- 
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at imail.org
(801) 408-8111
 
 

> -----Original Message-----
> From: r-help-bounces at r-project.org 
> [mailto:r-help-bounces at r-project.org] On Behalf Of mohamed nur anisah
> Sent: Thursday, January 24, 2008 5:37 AM
> To: r-help at r-project.org
> Subject: [R] adjustment on the x-axis scale width
> 
> Hi,
>    
>   I have sucessfully plotted the graph by using the following command:
>    
>    ec<-rep(0,length(e))
>  fc<-rep(0,length(f))
>  plot(e,ec,type="p",col=1,pch=19)
>  points(f,fc,col=2,pch=20)
>  legend(1.0e+08,1.0,c("dog", 
> "human"),text.col="green4",pch=c(19,20),col=c(1,2))
>    
>   Below are the values for e and f...the questions is how am 
> i going to adjust the scale width of my x-axis and my y-axis 
> will start at 0?? Any suggestion?? thanks in advance!!
>    
>   e:
>    [1]  17358865  17966995  21306539  27880531  34166504  
> 36111044  36266288  [8]  36854306  43786190  44322336  
> 45529444  46302360  53479132  58567262 [15]  60564442  
> 72637088  79875476  93155112  94372260  96643396 103123936 
> [22] 116908456 131781664 132968364 135945080 141788832 
> 149924864 156539568 [29] 157817896 162399496 168344072 
> 173146584 176302744 182878168 183946152
> [36] 185068720 190791232        NA
> 
>  f<-[1]  17906353  21295547  27880531  34118702  35395488  
> 36132622  37916920  [8]  43786190  44322336  46302360  
> 53494622  62105336  63817440  72637088 [15]  79875476  
> 94545992  96506368 103123936 116908456 126190072 127446552 
> [22] 131781664 154658264 176302744 181670472 182625272 
> 182878168 183946152
> [29]        NA
>    
>    cheers,
>   Anisah
> 
>        
> ---------------------------------
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> 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.
> 



More information about the R-help mailing list