[R] barplot

Ott Toomet siim at obs.ee
Tue Jun 25 10:18:34 CEST 2002

On Tue, 25 Jun 2002, Jan Malte Wiener wrote:

  |Well, unfortunately changing ylim does not work properly, try changing 
  |it to ylim= c(30,100) and look at the plot !!!
  |Also I am using the barplot() function that already exists, I have just 
  |build a function around it (this function calculates and plots also 
  |stderror bars and ....). Now I would like to change the ylim from 
  |outside this function (after calling the function that calls tha R 
  |barplot function)...

If I remember correctly, I have done something similar.  I just made a copy
of data, and replaced 

y[y<ylim] <- ylim

then it looked pretty well.

Perhaps it helps,


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