Measure epidermal traits from subsets of cells

subsample_epidermal_traits(
  x,
  n.runs = 100,
  k.cells = c(50),
  k.pavement = NULL,
  k.stomata = NULL,
  scaling = NULL,
  trait.subset = NULL,
  stom.val = 85,
  subs.val = 170,
  pave.val = 255,
  verbose = TRUE
)

Arguments

x

x List of the form output by extract_epidermal_traits() (see documentation of that function for details).

n.runs

Numeric. Number of times to sample each value of k.

k.cells

Numeric. Stopping threshold for number of cells.

k.pavement

Numeric. Stopping threshold for number of cells.

k.stomata

Numeric. Stopping threshold for number of cells.

scaling

Numeric. Global standard deviation values to standardize the variation of each trait.

trait.subset

Character. Specific traits to measure. Defaults to NULL (all traits measured).

stom.val

Numeric. Value of stomata (guard cells + pore). Defaults to 85.

subs.val

Numeric. Value of subsidiary cells. Defaults to 170.

pave.val

Numeric. Value of pavement cells. Defaults to 255

verbose

Logical. Show progress of sampling? Defaults to TRUE.

Value

A data.frame with the differences in trait values (measured in standard deviations if scaling is supplied) between each sampled cell patch and the whole image.