- Continue on
diversityMultilocus
function returns matchdiversity
function returns, also redodiversitySingleLocus
returns - Do we need
method = "permute"
? - Update figures with existing code
- continue generalising allele diversity tests
- Clean up pairwise diversity tests, return values and print and plot methods
- Make sites/groups/species terminology consistent
- Consider adding other methods to
createAlleleTables
using theas.genalex
functionality available to make conversions - copy chunks of
diversity
docs todiversityMultilocus
anddiversitySingleLocus
- Note README includes several examples and more documentation on parameters and functions
- Get data permission from VLS
- Tests
- Added a
plot.divtable
method which produces an annotatedmembershipPlot
membershipPlot
annotation argumentsl1
andl2
are placed by anannotation
function which can be redefined by the user- Weighted means and sample variances of
q.gg
for each estimator and ofq.gh
, all as defined in Scofield et al. 2011 Oecologia, are now included in the results returned bydiversity
fordivtable
objects - For all diversity tests, the comparison of the log-likelihood value against an analytic Χ2 distribution is removed as this was not an appropriate test
- Diversity tests now produce an error if any group has just one member, and
as.divtable
produces a warning for the same condition membershipPlot
writes the plot into a PDF file on option (the EPS option has been removed)- The pooled PMI values returned by
diversity
are documented - The
divtable
andallele_divtables
classes have separate documentation - Export and document the
nielsenTransform
function - Production of pie plots and the
method
argument are removed frommembershipPlot
- The Gower distance matrix diagonal generation is much, much faster
- Removed
accum.method
anddistance.file
arguments fromgammaAccum
functions. Theproximity
method was never well thought through; a proximity-based method could be valuable but not in the way it was implemented here. - For alpha and gamma diversity tests, all return class
'diversity_test'
object which is handled by commonprint.diversity_test
andplot.diversity_test
methods - New
as.divtable
generic, with methodsas.divtable.table
,as.divtable.xtabs
,as.divtable.matrix
andas.divtable.data.frame
, the latter of which first converts tomatrix
, then todivtable
- Settled on new class
divtable
, which is shared withtable
- For allelic data, new class
allele_divtables
, which is shared withlist
and is a list ofdivtable
objects for each locus - Quantiles checked are now richer and symmetric
- Renamed
allele.createTableList
to S3 generic and methodcreateAlleleTables
andcreateAlleleTables.genalex
. Added the synonym genericas.allele_divtables
. - Stabilised function interfaces using S3 classes.
- An example of random distance matrix creation is added to the README.
- Reworked return value from
diversity
to return separate lists forq
,q.nielsen
andr
- Changes function name of
pmiDiversity
todiversity
- For data, added 2002 and 2004 granary assignments for Q. lobata
- Worked out how to deal with
library(RColorBrewer)
use inmembershipPlot
. IfRColorBrewer
is available then it is used, with the new optionfill.palette = "Dark2"
selecting the palette. If it is not available,rainbow
is used.