[R] accumulation curves
Michael Bedward
michael.bedward at gmail.com
Thu Sep 23 09:36:23 CEST 2010
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" )
Is that the sort of thing that you're after ?
Michael
On 23 September 2010 17:07, Kyran Staunton <staunton.k at gmail.com> wrote:
> Sorry Michael,
>
> Yes it surely is, Chao1 species richness increase per sampling effort
> run through fossil.
>
> cheers,
>
> Kyran
>
> On 23 September 2010 16:58, Michael Bedward <michael.bedward at gmail.com> wrote:
>> 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 <staunton.k at gmail.com> wrote:
>>> 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 at 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.
>>>
>>
>
More information about the R-help
mailing list