WOW, Gabor, that is fancy. I have gotten better at this R thing, but have far to go. That is a neat solution. thanks
Stephen On Fri, Jan 9, 2009 at 2:22 PM, Gabor Grothendieck <ggrothendi...@gmail.com> wrote: > Or even: > > plot(a, ylim = range(a) + 0.06 * c(-1, 1)) > > > On Fri, Jan 9, 2009 at 2:07 PM, Mike Prager <mike.pra...@noaa.gov> wrote: >> "stephen sefick" <ssef...@gmail.com> wrote: >> >>> low <- min(a*0.98)-(min(a)*0.04) >>> high <- max(a*1.02)+(max(a)*0.04) >>> plot(a, ylim=c(low, high)) >> >> Unless I am misreading your example, this can be done a little >> more compactly as: >> >> plot(a, ylim = range(a * 0.94, a * 1.06)) >> >> -- >> Mike Prager, NOAA, Beaufort, NC >> * Opinions expressed are personal and not represented otherwise. >> * Any use of tradenames does not constitute a NOAA endorsement. >> >> ______________________________________________ >> R-help@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. >> > > ______________________________________________ > R-help@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. > -- Stephen Sefick Let's not spend our time and resources thinking about things that are so little or so large that all they really do for us is puff us up and make us feel like gods. We are mammals, and have not exhausted the annoying little problems of being mammals. -K. Mullis ______________________________________________ R-help@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.