Re: [R] denoting max value in ylim

2009-11-20 Thread Sundar Dorai-Raj
ylim = c(0, max(log10(D10$Part.P))) Make sure you remove any 0s or NAs before computing the max though. --sundar On Fri, Nov 20, 2009 at 6:12 AM, helene frigstad wrote: > > Hi, > > is there any way to set the ylim range from zero to whatever is the max > value in that dataset? I am plotting man

[R] denoting max value in ylim

2009-11-20 Thread helene frigstad
Hi, is there any way to set the ylim range from zero to whatever is the max value in that dataset? I am plotting many similar plots to the one below, and would like to avoid having to find the max value each time. plot (D10$Part.P ~ D10$Klorofyll,pch=16,log = "xy", xlab = ("Chla"), ylab = ("PO

[R] denoting max value in ylim

2009-11-20 Thread helene frigstad
Hi, is there any way to set the ylim range from zero to whatever is the max value in that dataset? I am plotting many similar plots to the one below, and would like to avoid having to find the max value each time. plot (D10$Part.P ~ D10$Klorofyll,pch=16,log = "xy", xlab = ("Chla"), ylab = ("PO

Re: [R] denoting max value in ylim

2009-11-20 Thread separent
Have you tried max()? i.e. plot (D10$Part.P ~ D10$Klorofyll,pch=16,log = "xy", xlab = ("Chla"), ylab = ("POP"), ylim = c (0, max(D10$Klorofyll))) helene frigstad wrote: > > Hi, > > is there any way to set the ylim range from zero to whatever is the max > value in that dataset? I am plotting