[R] plot(..., type="h") w/ origin not at y=0

Cyril Humbert humbertc at univ-mlv.fr
Thu Jun 27 17:46:28 CEST 2002


Is it a way to make plots with vertical lines, like plot(x, y, type="h"),
but starting from a different value than y=0.

For example, with x=1:3, y=-(1:3), y.orig=-3 :

  -1  |    
      |
y -2  |  |
      |  |
  -3  |  |  |  
      1  2  3 
         x
      
Thanks
-- 
Cyril Humbert 
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list