View source: R/diagnosticPropertyPlot.R
diagnosticPropertyPlot2 | R Documentation |
Generate a graphical description of the presence/absence of soil diagnostic properties.
diagnosticPropertyPlot2(f, v, k, grid.label = "upedonid", sort.vars = TRUE)
f |
|
v |
character vector of site-level attribute names of |
k |
an integer, number of groups to highlight |
grid.label |
the name of a site-level attribute (usually unique) annotating the y-axis of the grid |
sort.vars |
sort variables according to natural clustering ( |
This function attempts to display several pieces of information within a single figure. First, soil profiles are sorted according to the presence/absence of diagnostic features named in v
. Second, these diagnostic features are sorted according to their distribution among soil profiles. Third, a binary grid is established with row-ordering of profiles based on step 1 and column-ordering based on step 2. Blue cells represent the presence of a diagnostic feature. Soils with similar diagnostic features should 'clump' together. See examples below.
a list
is silently returned by this function, containing:
rd
a data.frame
containing IDs and grouping code
profile.order
a vector containing the order of soil profiles (row-order in figure), according to diagnostic property values
var.order
a vector containing the order of variables (column-order in figure), according to their distribution among profiles
D.E. Beaudette and J.M. Skovlin
multinominal2logical
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.