PCA: Automatically save PCA plot for the selected dimension...

Description Usage Arguments Value Examples

View source: R/PCA.R

Description

Automatically save PCA plot for the selected dimension metrics

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
PCA(
  Data,
  color = c("#FF3300", "#660099", "#FFCC00", "#99CC00", "#0066CC", "#FF6600"),
  legend_position = "none",
  fig_width = 24,
  fig_height = 20,
  components = c(1, 2),
  names = F,
  dotsize = 3,
  labsize = 3,
  ellipse = T
)

Arguments

Data

uploaded data

color

colors used for ggplots.color=c("#FF3300","#FF6600","#FFCC00","#99CC00","#0066CC","#660099")

legend_position

legend position "none","left","right","bottom","top"

fig_width

figure size

fig_height

figure size

components

PCA components c(1,3)

names

whether the names are to be indicated T,F

dotsize

dot size

labsize

label size

ellipse

T, F

Value

PCA plot

Examples

1
2
data(Data)
PCA(Data,components = c(1,2),legend_position = "none")

CHKim5/LMSstat documentation built on Dec. 17, 2021, 12:55 p.m.