Creation and analysis of linear regressions fitted to log10- transformed numerical abundance versus log10-transformed body mass.
1 2 3 4 5 6 7 8 9
an object of class
the property over which linear regressions are fitted. Defaults to 'category' if the community has a node property with that name.
NvMLinearRegressions returns a
objects, one for each
class and one fitted to all data.
The list will contain
NULL if it is not possible to fit a
linear regression to that class; this will happen for classes that contain
just a single node or that contain all or all but one nodes where
the slope, intercept and both, respectively, of a single linear regression
fitted to all data.
NvMSlopeAndInterceptByClass return the slope, intercept and both,
respectively, of linear regressions fitteed to each
class and one
to all data. For classes where it is not possible to fit a linear
regression (for the reasons given above),
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
data(TL84) models <- NvMLinearRegressions(TL84) # 'all', 'producer', 'invertebrate', 'vert.ecto' names(models) # Extract slopes and intercepts sapply(models, coef) # Slopes and intercepts through all data for each web in the pHWebs # collection data(pHWebs) CollectionCPS(pHWebs, properties=c('NvMSlope')) CollectionCPS(pHWebs, properties=c('NvMIntercept')) CollectionCPS(pHWebs, properties=c('NvMSlopeAndIntercept')) # Slopes and intercepts through each category for each web in pHWebs CollectionCPS(pHWebs, properties=c('NvMSlopeAndInterceptByClass'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.