[R] species accumulation curve with percentages
bgunter@4567 @end|ng |rom gm@||@com
Tue Jun 16 19:24:01 CEST 2020
Probably: ?sum ?cumsum
> x <- runif(100, 10,20)
> cumsum(x)/sum(x) *100
"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Tue, Jun 16, 2020 at 8:15 AM Eddie Tsyrlin <
tsyrline using student.unimelb.edu.au> wrote:
> I need to express species accumulation curve in percentage terms, i.e. the
> vertical axis is from 1% to 100%
> I have community data similar to BCI (from vegan package).
> I can construct the 'usual' species curve (see below) but I need to convert
> the species number to percentage.
> bcispec<-specaccum(BCI, method = "random",
> permutations = 100)
> Eddie Tsyrlin, PhD Candidate | PEARG | Building 404, Grd Floor, Rm G21
> School of Biosciences | University of Melbourne
> *Post:* Bio21, Flemington Rd, Parkville VIC 3052
> *m: *0413 995525
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
[[alternative HTML version deleted]]
More information about the R-help