correlation | R Documentation |
Creates an object that can be used to plot a correlation matrix using plot.correlation.
correlation(map, state, name)
map |
A |
state |
The character state that will be used to calculate The correlation; |
name |
A string to uniquely identify this mapping. |
Correlation matrix is useful to check if different methods implies on similar results. To if you run sfreemap with different parameters you can easily check the correlation of the outcomes by summing up objects created with this function and plottig it using plot.correlation.
This function returns an object that can handle the plus operator. See examples.
An object of class correlation
Diego Pasqualin dpasqualin@inf.ufpr.br
sfreemap, plot.correlation
r1 <- sfreemap(sfreemap.corals.trees[[1]], sfreemap.corals.tips, parallel=FALSE)
r2 <- sfreemap(sfreemap.corals.trees[[1]], sfreemap.corals.tips, method='mcmc',
n_simulation=1, parallel=FALSE)
cor <- correlation(r1, 'colonial', 'empirical') + correlation(r2, 'colonial', 'mcmc')
plot(cor)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.