[R] x-axis

From: mohamed nur anisah <nuranisah_mohamed_at_yahoo.com>
Date: Mon, 28 Jan 2008 04:06:16 -0800 (PST)


Hi,    

  I want to plot a graph and here is my code:    

   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))    

  my major problem here is the x-axis is too large in scale and its very hard for me to read the x-points from my graph. Can I change the x-label too?? Please help me figure out my problem!! 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. Received on Mon 28 Jan 2008 - 12:09:29 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 28 Jan 2008 - 16:30:12 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive