Skip to content
Prev 166470 / 398502 Next

Programming Question (setting ylim generally)

WOW, I am not going to post after midnight.  Thank you for your
response, and this is what I settled on.

`plot.e` <- function(b, w, x, y, z){
a <- window.chron(b, w, x, y, z)
low <- min(a*0.98)-(min(a)*0.04)
high <- max(a*1.02)+(max(a)*0.04)
plot(a, ylim=c(low, high))
lines(a*0.98, col="blue")
lines(a*1.02, col="red")
}
On Fri, Jan 9, 2009 at 5:38 AM, Gavin Simpson <gavin.simpson at ucl.ac.uk> wrote: