pca | R Documentation |
PCA & Group plot
pca(
data,
mode = "simple",
labels,
vars,
eigen = FALSE,
plot = FALSE,
plot1 = FALSE,
plot2 = FALSE,
vars1,
facs,
plot3 = FALSE,
plot4 = FALSE,
width = 500,
height = 500,
width1 = 500,
height1 = 500,
width2 = 500,
height2 = 500,
width3 = 500,
height3 = 500,
width4 = 500,
height4 = 500
)
data |
The data as a data frame. |
mode |
. |
labels |
. |
vars |
. |
eigen |
. |
plot |
. |
plot1 |
. |
plot2 |
. |
vars1 |
. |
facs |
. |
plot3 |
. |
plot4 |
. |
width |
. |
height |
. |
width1 |
. |
height1 |
. |
width2 |
. |
height2 |
. |
width3 |
. |
height3 |
. |
width4 |
. |
height4 |
. |
A results object containing:
results$instructions | a html | ||||
results$eigen | a table | ||||
results$plot | an image | ||||
results$plot1 | an image | ||||
results$plot2 | an image | ||||
results$plot3 | an image | ||||
results$plot4 | an image | ||||
Tables can be converted to data frames with asDF
or as.data.frame
. For example:
results$eigen$asDF
as.data.frame(results$eigen)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.