-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathfdlabels.Rd
50 lines (43 loc) · 1.26 KB
/
fdlabels.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
\name{fdlabels}
\alias{fdlabels}
\title{
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{
\item{fdnames}{
a list of length 3 with xlabel, casenames, and ylabels.
}
\item{nrep}{ integer number of cases or observations }
\item{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
}
\references{
Ramsay, James O., Hooker, Giles, and Graves, Spencer (2009),
\emph{Functional data analysis with R and Matlab}, Springer, New York.
Ramsay, James O., and Silverman, Bernard W. (2005),
\emph{Functional Data Analysis, 2nd ed.}, Springer, New York.
Ramsay, James O., and Silverman, Bernard W. (2002),
\emph{Applied Functional Data Analysis}, Springer, New York.
}
\seealso{
\code{\link{plot.fd}}
}
\author{Jim Ramsay}
\keyword{smooth }