pca: PCA PCoa NMDS

pca_plotR Documentation

PCA PCoa NMDS

Description

Plot the PCA PCoa NMDS.

Usage

pca_plot(
  df,
  group,
  scale = FALSE,
  axis = c(1, 2),
  label = TRUE,
  legend = FALSE,
  point_size = 2,
  font = "sans",
  font_size = 10
)

pcoa_plot(
  dist,
  group,
  axis = c(1, 2),
  label = TRUE,
  legend = FALSE,
  point_size = 2,
  font = "sans",
  font_size = 10,
  ...
)

nmds_plot(
  dist,
  group,
  label = TRUE,
  legend = FALSE,
  point_size = 2,
  font = "sans",
  font_size = 10,
  ...
)

Arguments

df

df

group

group

scale

TRUE of FALSE. Scale species to unit variance (like correlations).

axis

select the axis to plot

label

TRUE of FALSE. Whether to draw a label

legend

TRUE of FALSE. Whether to draw a legend

point_size

point size

font

sans = Arial, serif = Times New Roman

font_size

font size

dist

dist.

...

Other params from ?ape::pcoa and ?vegan::metaMDS

Examples

data(its)
otu_t <- t(its)
pca_plot(otu_t)
bray_dist <- vegan::vegdist(otu_t)
pcoa_plot(bray_dist)
nmds_plot(bray_dist)

yanpd01/yyeasy documentation built on Dec. 1, 2022, 10:58 p.m.