1
0
mirror of https://github.com/msberends/AMR.git synced 2025-09-03 08:24:11 +02:00

(v2.1.1.9233) chore: make all argument texts full sentences

This commit is contained in:
2025-03-31 14:53:24 +02:00
parent 63099cd81e
commit 1fdab84103
91 changed files with 720 additions and 701 deletions

View File

@@ -8,7 +8,7 @@ pca(x, ..., retx = TRUE, center = TRUE, scale. = TRUE, tol = NULL,
rank. = NULL)
}
\arguments{
\item{x}{A \link{data.frame} containing \link{numeric} columns}
\item{x}{A \link{data.frame} containing \link{numeric} columns.}
\item{...}{Columns of \code{x} to be selected for PCA, can be unquoted since it supports quasiquotation.}
@@ -73,17 +73,18 @@ if (require("dplyr")) {
pca_result
summary(pca_result)
# old base R plotting method:
biplot(pca_result)
# new ggplot2 plotting method using this package:
if (require("ggplot2")) {
ggplot_pca(pca_result)
}
# new ggplot2 plotting method using this package:
if (require("dplyr") && require("ggplot2")) {
ggplot_pca(pca_result)
}
if (require("dplyr") && require("ggplot2")) {
ggplot_pca(pca_result) +
scale_colour_viridis_d() +
labs(title = "Title here")
}
}
}
}