[R-sig-eco] problem with legend Renyi diversity profile
Kátia Emidio
kat.emidio at gmail.com
Wed Jun 22 21:40:16 CEST 2016
Dear all,
I am new at Calculating Renyi diversity and I'm having a problem with
plotting the results.
My data.frame results is:
Renyi.viz <- renyiresult(sp, method="s")
> Renyi.viz
0 0.25 0.5 1 2 4 8 Inf
1 3.219 3.189 3.155 3.080 2.906 2.611 2.379 2.169
2 3.091 3.050 3.006 2.912 2.711 2.384 2.108 1.846
3 3.296 3.257 3.213 3.109 2.861 2.486 2.248 2.054
4 2.773 2.739 2.705 2.636 2.498 2.271 2.042 1.792
5 3.091 3.051 3.004 2.887 2.583 2.117 1.839 1.609
6 3.178 3.147 3.113 3.037 2.863 2.542 2.253 1.974
7 3.045 3.006 2.965 2.877 2.703 2.468 2.298 2.110
8 3.135 3.082 3.019 2.866 2.509 2.061 1.804 1.580
9 2.890 2.867 2.842 2.791 2.688 2.520 2.358 2.159
10 3.258 3.230 3.199 3.131 2.977 2.716 2.484 2.197
11 2.944 2.923 2.899 2.846 2.719 2.481 2.275 2.079
12 3.135 3.118 3.100 3.060 2.974 2.808 2.606 2.303
13 2.890 2.873 2.853 2.811 2.716 2.526 2.312 2.037
14 3.178 3.138 3.093 2.989 2.749 2.400 2.166 1.917
15 3.045 2.992 2.934 2.802 2.531 2.193 1.972 1.735
When plotting it I'm getting the answer :
renyiplot(Renyi.viz, evenness = F, addit=F, pch=1, col="3", cex=1)
*Error in legend(graphics::locator(1), legend = rownames(x), pch = c(1:n),
: *
* 'legend' is of length 0*
Any clue?? Where is the mistake...What should I do?
Thanks
--
Kátia Emídio da Silva DSc
Eng. Florestal
Manaus/AM
Forestry Engineer
Manaus/AM-Brazil
[[alternative HTML version deleted]]
More information about the R-sig-ecology
mailing list