Learn R Programming

albatross (version 0.1-1)

plot.feemsplithalf: Plot results of split-half analysis

Description

Present the results of repeatedly splitting the dataset into halves and fitting PARAFAC models to each half.

Usage

# S3 method for feemsplithalf
plot(x, kind = c("tcc", "factors"), …)

Arguments

x

An object returned by feemsplithalf.

kind

"tcc"

Display statistics of between-half TCCs for different numbers of components. The smallest TCC is chosen between emission- and excitation-mode values, but otherwise they are not aggregated. Components with the same number have the same colour.

"factors"

Plot the resulting factors themselves on panels per each number of components and each mode (emission or excitation). Components with the same number have the same colour.

Passed as-is to xyplot.

Value

A lattice plot object. Its print or plot method will draw the plot on an appropriate plotting device.

Details

The function provides sane defaults for xyplot parameters xlab, ylab, as.table, but they can be overridden.

See Also

feemsplithalf, xyplot.

Examples

Run this code
# NOT RUN {
  data(feems)
  cube <- feemscale(
    feemscatter(feemcube(feems, FALSE), rep(24, 4)), na.rm = TRUE
  )
  # will take time
  sh <- feemsplithalf(cube, 2:4, random = 5, const = rep('nonneg', 3))
  plot(sh)
  plot(sh, 'factors')
# }

Run the code above in your browser using DataLab