plot.fpcat | R Documentation |
Applies to an object of class "fpcat"
(see details of the
fpcat
function). Plots the scores.
## S3 method for class 'fpcat'
plot(x, nscore=c(1, 2), main = "PCA of probability density functions",
sub.title = NULL, ...)
x |
object of class |
nscore |
numeric or length 2 numeric vector. If it is a length 2 numeric vector (default), it contains the numbers of the score vectors to be plotted. If it is a single value, it is the number of the score which is plotted among time. Warning: The components of |
main |
this argument to title has an useful default here. |
sub.title |
string. Subtitle to be added to each graph. |
... |
optional arguments to |
Plots:
if nscore
is a length 2 vector (default): the principal scores returned by the fpcat
function with arrows from the point corresponding to each time to the next one.
if nscore
is a single value, the principal scores among time with arrows from each time to the next one.
Rachid Boumaza, Pierre Santagostini, Smail Yousfi, Gilles Hunault, Sabine Demotes-Mainard
Boumaza, R., Yousfi, S., Demotes-Mainard, S. (2015). Interpreting the principal component analysis of multivariate density functions. Communications in Statistics - Theory and Methods, 44 (16), 3321-3339.
fpcat; print.fpcat
times <- as.Date(c("2017-03-01", "2017-04-01", "2017-05-01", "2017-06-01"))
x1 <- data.frame(z1=rnorm(6,1,5), z2=rnorm(6,3,3))
x2 <- data.frame(z1=rnorm(6,4,6), z2=rnorm(6,5,2))
x3 <- data.frame(z1=rnorm(6,7,2), z2=rnorm(6,8,4))
x4 <- data.frame(z1=rnorm(6,9,3), z2=rnorm(6,10,2))
ft <- foldert(x1, x2, x3, x4, times = times, rows.select="intersect")
print(ft)
result <- fpcat(ft)
plot(result)
plot(result, nscore = c(1, 2))
plot(result, nscore = 1)
plot(result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.