Hi Kyran,
Please reply via the list - you'll get more answers that way :)
My example had the data in vectors, you are using a data.frame. Try
replacing the relevant bits of your code (below) with these lines and
see if that helps...
rich.lm ~ lm(Chao1 ~ log(N.obs), data=table1)
smooth.effort <-
OK, assuming a trend in estimated spp richness vs log(effort) you
could do this...
plot(effort, richness)
rich.lm <- lm( richness ~ log(effort) )
smooth.effort <- seq(1, 10, 0.1) # or whatever is appropriate
lines( smooth.effort, predict(rich.lm,
newdata=list(effort=smooth.effort)), col="red" )
Hello Kyran,
Some more details of your data would be helpful. For example, is it
cumulative species count over time ?
Michael
On 23 September 2010 15:05, Kyran Staunton wrote:
> Hi,
>
> I am trying to fit a logarithmic trendline to a scatterplot of a
> species accumulation curve. I've tried abl
Hi,
I am trying to fit a logarithmic trendline to a scatterplot of a
species accumulation curve. I've tried abline, lines, curve and
scatter.smooth but none of these work.
Can anyone help please,
Kyran
__
R-help@r-project.org mailing list
https://stat
4 matches
Mail list logo