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
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
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
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
4 matches
Mail list logo