plot.prcomp_qts | R Documentation |
prcomp_qts
objectsThis function creates a visualization of the results of the PCA applied on a sample of QTS without returning the plot data as an object.
## S3 method for class 'prcomp_qts'
plot(x, what = "PC1", ...)
## S3 method for class 'prcomp_qts'
screeplot(x, ...)
x |
An object of class |
what |
A string specifying what kind of visualization the user wants to
perform. Choices are words starting with |
... |
If |
No return value, called for side effects.
df <- as_qts_sample(vespa64$igp[1:16])
res_pca <- prcomp(df)
# You can plot the effect of a PC on the mean
plot(res_pca, what = "PC1")
# You can plot the data points in a PC plane
plot(res_pca, what = "scores")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.