Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

fdlabels

Extract plot labels and names for replicates and variables


Description

Extract plot labels and, if available, names for each replicate and variable

Usage

fdlabels(fdnames, nrep, nvar)

Arguments

fdnames

a list of length 3 with xlabel, casenames, and ylabels.

nrep

integer number of cases or observations

nvar

integer number of variables

Details

xlabel <- if(length(fdnames[[1]])>1) names(fdnames)[1] else fdnames[[1]]

ylabel <- if(length(fdnames[[3]])>1) names(fdnames)[3] else fdnames[[3]]

casenames <- if(length(fdnames[[2]])== nrep)fdnames[[2]] else NULL

varnames <- if(length(fdnames[[3]])==nvar)fdnames[[3]] else NULL

Value

A list of xlabel, ylabel, casenames, and varnames

Author(s)

Jim Ramsay

See Also


fda

Functional Data Analysis

v5.1.9
GPL (>= 2)
Authors
J. O. Ramsay <ramsay@psych.mcgill.ca> [aut,cre], Spencer Graves <spencer.graves@effectivedefense.org> [ctb], Giles Hooker <gjh27@cornell.edu> [ctb]
Initial release
2020-12-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.