do3PCA

R 패키지 메타데이터와 수집 신호를 모아 봅니다.

Packages / CRAN / do3PCA

do3PCA

v1.0.0
do3PCA
Repository CRANLicense GPL (>= 2.0)Needs compilation no
DOI
10.32614/CRAN.package.do3PCA
Task views
Phylogenetics

Core Signals

첫 화면에서 판단해야 할 수집 신호를 먼저 배치합니다.

1
Task views
Phylogenetics

Supported Backends

DESCRIPTION에서 감지한 backend 관련 package입니다.

0
backend package 신호가 없습니다.

Quick Facts

기본 메타데이터를 작은 카드와 토큰으로 압축합니다.

profile
Repository
CRAN
Version
1.0.0
License
GPL (>= 2.0)
Needs compilation
no
Last observed
2026-05-30
CRAN
cran.r-project.org/package=do3PCA

수집 소스별 패키지 정보

1개 소스
CRAN
1.0.0
2026-05-30
License
GPL (>= 2.0)
Depends
R (>= 3.5.0), Rdimtools
Imports
ape, phytools, matrixcalc, mclust, nloptr, ratematrix, stats, utils
Needs compilation
no
Last observed
2026-05-30 10:45:11

이 패키지가 의존하는 패키지

5개 표시전체 9개
PackageTypeSpec
Rdimtools
CRAN · 1.0.0 · 2026-05-30
DependsRdimtools
ape
CRAN · 1.0.0 · 2026-05-30
Importsape
matrixcalc
CRAN · 1.0.0 · 2026-05-30
Importsmatrixcalc
mclust
CRAN · 1.0.0 · 2026-05-30
Importsmclust
nloptr
CRAN · 1.0.0 · 2026-05-30
Importsnloptr
1 / 2

이 패키지를 쓰는 패키지

0개 표시전체 0개
PackageTypeSpec
표시할 dependency edge가 없습니다.
1 / 1

패키지 페이지

All links
26
Repository
CRAN
Version
1.0.0
Collected
2026-05-23 11:11:30
Package page
https://cran.r-project.org/web/packages/do3PCA/index.html
DOI
10.32614/CRAN.package.do3PCA
CRAN checks
https://cran.r-project.org/web/checks/check_results_do3PCA.html
Reference HTML
https://cran.r-project.org/web/packages/do3PCA/refman/do3PCA.html
Reference PDF
https://cran.r-project.org/web/packages/do3PCA/do3PCA.pdf
Source package
https://cran.r-project.org/src/contrib/do3PCA_1.0.0.tar.gz
In views
Phylogenetics
Page fields
Author
Daniel Caetano [aut, cre]
CRAN Checks
do3PCA results
DOI
10.32614/CRAN.package.do3PCA
In Views
Phylogenetics
License
GPL-2 | GPL-3 [expanded from: GPL (≥ 2.0)]
Maintainer
Daniel Caetano <caetanods1 at gmail.com>
NeedsCompilation
no
Package Source
do3PCA_1.0.0.tar.gz
Published
2024-09-24
Reference Manual
do3PCA.html , do3PCA.pdf
Version
1.0.0
Windows Binaries
r-devel: do3PCA_1.0.0.zip , r-release: do3PCA_1.0.0.zip , r-oldrel: do3PCA_1.0.0.zip
MacOS Binaries
r-release (arm64): do3PCA_1.0.0.tgz , r-oldrel (arm64): do3PCA_1.0.0.tgz , r-release (x86_64): do3PCA_1.0.0.tgz , r-oldrel (x86_64): do3PCA_1.0.0.tgz
Version
1.0.0
Published
2024-09-24
DOI
10.32614/CRAN.package.do3PCA
Author
Daniel Caetano [aut, cre]
Maintainer
Daniel Caetano <caetanods1 at gmail.com>
License
GPL-2 | GPL-3 [expanded from: GPL (≥ 2.0)]
NeedsCompilation
no
In Views
Phylogenetics
CRAN Checks
do3PCA results
Reference Manual
do3PCA.html , do3PCA.pdf
Package Source
do3PCA_1.0.0.tar.gz
Windows Binaries
r-devel: do3PCA_1.0.0.zip , r-release: do3PCA_1.0.0.zip , r-oldrel: do3PCA_1.0.0.zip
MacOS Binaries
r-release (arm64): do3PCA_1.0.0.tgz , r-oldrel (arm64): do3PCA_1.0.0.tgz , r-release (x86_64): do3PCA_1.0.0.tgz , r-oldrel (x86_64): do3PCA_1.0.0.tgz
Page sections 3
Documentation
Heading
Documentation
Links
[{"label":"do3PCA.html","section":"","type":"","url":"https://cran.r-project.org/web/packages/do3PCA/refman/do3PCA.html"},{"label":"do3PCA.pdf","section":"","type":"","url":"https://cran.r-project.org/web/packages/do3PCA/do3PCA.pdf"}]
Text
Reference manual: do3PCA.html , do3PCA.pdf
Downloads
Heading
Downloads
Links
[{"label":"do3PCA_1.0.0.tar.gz","section":"","type":"","url":"https://cran.r-project.org/src/contrib/do3PCA_1.0.0.tar.gz"},{"label":"do3PCA_1.0.0.zip","section":"","type":"","url":"https://cran.r-project.org/bin/windows/contrib/4.7/do3PCA_1.0.0.zip"},{"label":"do3PCA_1.0.0.zip","section":"","type":"","url":"https://cran.r-project.org/bin/windows/contrib/4.6/do3PCA_1.0.0.zip"},{"label":"do3PCA_1.0.0.zip","section":"","type":"","url":"https://cran.r-project.org/bin/windows/contrib/4.5/do3PCA_1.0.0.zip"},{"label":"do3PCA_1.0.0.tgz","section":"","type":"","url":"https://cran.r-project.org/bin/macosx/sonoma-arm64/contrib/4.6/do3PCA_1.0.0.tgz"},{"label":"do3PCA_1.0.0.tgz","section":"","type":"","url":"https://cran.r-project.org/bin/macosx/big-sur-arm64/contrib/4.5/do3PCA_1.0.0.tgz"},{"label":"do3PCA_1.0.0.tgz","section":"","type":"","url":"https://cran.r-project.org/bin/macosx/big-sur-x86_64/contrib/4.6/do3PCA_1.0.0.tgz"},{"label":"do3PCA_1.0.0.tgz","section":"","type":"","url":"https://cran.r-project.org/bin/macosx/big-sur-x86_64/contrib/4.5/do3PCA_1.0.0.tgz"}]
Text
Package source: do3PCA_1.0.0.tar.gz Windows binaries: r-devel: do3PCA_1.0.0.zip , r-release: do3PCA_1.0.0.zip , r-oldrel: do3PCA_1.0.0.zip macOS binaries: r-release (arm64): do3PCA_1.0.0.tgz , r-oldrel (arm64): do3PCA_1.0.0.tgz , r-release (x86_64): do3PCA_1.0.0.tgz , r-oldrel (x86_64): do3PCA_1.0.0.tgz
Linking
Heading
Linking
Links
[{"label":"https://CRAN.R-project.org/package=do3PCA","section":"","type":"","url":"https://CRAN.R-project.org/package=do3PCA"}]
Text
Please use the canonical form https://CRAN.R-project.org/package=do3PCA to link to this page.
Documentation 2
Downloads 8
All page links 26

패키지 문서 원문

2 artifacts
reference_manual_html
Reference manual HTML
CRAN · 1.0.0 · Documentation · text/html · 10,962 · 2026-05-07
Title
Help for package do3PCA
Label
Reference manual HTML
Text content
Text content
Help for package do3PCA const macros = { "\\R": "\\textsf{R}", "\\mbox": "\\text", "\\code": "\\texttt"}; function processMathHTML() { var l = document.getElementsByClassName('reqn'); for (let e of l) { katex.render(e.textContent, e, { throwOnError: false, macros }); } return; } Package {do3PCA} Contents ProbPCA doBiplot phylProbPCA Title: Probabilistic Phylogenetic Principal Component Analysis Version: 1.0.0 Description: Estimates probabilistic phylogenetic Principal Component Analysis (PCA) and non-phylogenetic probabilistic PCA. Provides methods to implement alternative models of trait evolution including Brownian motion (BM), Ornstein-Uhlenbeck (OU), Early Burst (EB), and Pagel's lambda. Also provides flexible biplot functions. License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2.0)] Encoding: UTF-8 Depends: R (≥ 3.5.0), Rdimtools Imports: ape, phytools, matrixcalc, mclust, nloptr, ratematrix, stats, utils RoxygenNote: 7.3.1 NeedsCompilation: no Packaged: 2024-09-23 15:42:47 UTC; daniel Author: Daniel Caetano [aut, cre] Maintainer: Daniel Caetano <caetanods1@gmail.com> Repository: CRAN Date/Publication: 2024-09-24 19:10:10 UTC Probabilistic PCA Description Function to perform (non-phylogenetic) probabilistic PCA. This function is a modification (fork) of Rdimtools::do.ppca . Usage ProbPCA(x, ret_dim = 2) Arguments x a matrix with traits in columns and observations in rows. ret_dim number of dimensions (PC axes) to be kept by the model. Details This function uses the same algorithm as Rdimtools::do.ppca. However, it returns more details from the estimation and computes AIC and AICc. The function returns a list with the following elements. scores: the scores of the principal components; projection: the eigenvectors; sig: the MLE of the error of the model; mle.W: the MLE of the W matrix: varnames: the names of the traits; loglik: the log-likelihood of the estimate. Function also returns AIC, AICc, and BIC for the model. Value returns a list of class "phylPPCA". See "Details" for more information. References Tipping, M. E., and C. M. Bishop. 1999. Probabilistic Principal Component Analysis. Journal of the Royal Statistical Society Series B: Statistical Methodology 61(3):611–622. doi: 10.1111/1467-9868.00196 Examples dt <- as.matrix( ratematrix::anoles$data[,1:3] ) ppca <- ProbPCA(x = dt, ret_dim = 2) doBiplot(x = ppca, add_margin = 0.3) Make biplot for any type of PCA Description Function to make biplots for any kind of PCA. It accepts the outputs from standard PCA (princomp and prcomp). It also works with the "phylProbPCA" and "ProbPCA" functions. It provides more options to the plot than the standard "stats::biplot". Usage doBiplot(x, choices = 1L:2L, scale = 1, pc.biplot = FALSE, col, ...) Arguments x output from PCA analysis. choices numeric vector of length 2. Use to choose which of the PC axes to plot. Default plots first and second axes: "choices = c(1,2)". scale numeric value between 0 and 1. Same as in "stats::biplot.princomp". See ?biplot.princomp for more information. pc.biplot logical. If TRUE it will produce a "principal component biplot" (sensu Gabriel, 1971). Same as in "stats::biplot.princomp". See ?biplot.princomp for more information. col character vector of length 3 with the colors of the biplot. First color is used for the score points (or sample sames), second color for arrows and variable names, and third color for the right and top-side ticks (plot axes). ... extra parameters for the function. Same as "stats::biplot". Details Function has the same options as "stats::biplot", with the addition of the following arguments. "plot_dimnames" controls is the names of the samples (species) will be plotted. "add_points" controls if the score points will be plotted. "add_margin" is a numeric value that expands the area of the plot. You can use this to make sure the names of variables and samples (species) fit the plot. Value makes a biplot of the PCA results. Examples phy <- ratematrix::anoles$phy[[1]] dt <- as.matrix( ratematrix::anoles$data[,1:3] ) ## Using probabilistic phylogenetic PCA phylppca <- phylProbPCA(phy = phy, x = dt, ret_dim = 2) doBiplot(x = phylppca, add_margin = 0.3) ## Using standard phylogenetic PCA phylpca <- phytools::phyl.pca(tree = phy, Y = dt) doBiplot(x = phylpca, add_margin = 0.3) ## Using probabilistic PCA ppca <- ProbPCA(x = dt) doBiplot(x = ppca, add_margin = 0.3) ## Using standard PCA pca1 <- princomp(x = dt) doBiplot(x = pca1, add_margin = 0.1) ## Using standard PCA pca2 <- prcomp(x = dt) doBiplot(x = pca2, add_margin = 0.1) Probabilistic Phylogenetic PCA Description Function to perform probabilistic phylogenetic PCA. Allows for fit of alternative models of trait evolution using branch length transformation. Usage phylProbPCA(phy, x, ret_dim = 2, model = "BM", quiet = FALSE) Arguments phy phylogeny in "phylo" format. x a matrix with traits in columns and species values in rows. Rownames must match the tip labels of phylogeny. ret_dim number of dimensions (PC axes) to be kept by the model. model choice of model of trait evolution. One of "BM", "lambda", "OU", or "EB". quiet if function should suppress output to the console while running Details The function can be used to estimate the probabilistic phylogenetic PCA (3PCA) using distinct models of trait evolution. Models are implemented using branch length transformation. Model fitting happens in two steps. First the maximum likelihood of the evolutionary covariance matrix (R) and the parameter of the model is estimated. Then the 3PCA model is estimated using the phylogenetic tree with branch lengths transformed following the MLE for the parameter of each trait evolution model. The function returns a list with the following elements. scores: the scores of the principal components; e_values: eigenvalues; e_vectors: eigenvectors or the projection; model_fit: information about the trait evolution model; loadings: the loadings of the PCs; varnames: the names of the variables; sig: the MLE of the error; mle.W: the MLE of the W matrix; Function also returns AIC, AICc, and BIC for the model. Value returns a list of class "phylPPCA". See "Details" for more information. References Revell, L. J. 2009. Size-Correction and Principal Components for Interspecific Comparative Studies. Evolution 63:3258–3268. doi: 10.1111/j.1558-5646.2009.00804.x Revell, L. J. 2024. phytools 2.0: an updated R ecosystem for phylogenetic comparative methods (and other things). PeerJ 12:e16505. doi: 10.7717/peerj.16505 Tipping, M. E., and C. M. Bishop. 1999. Probabilistic Principal Component Analysis. Journal of the Royal Statistical Society Series B: Statistical Methodology 61(3):611–622. doi: 10.1111/1467-9868.00196 Examples phy <- ratematrix::anoles$phy[[1]] dt <- as.matrix( ratematrix::anoles$data[,1:3] ) ppca <- phylProbPCA(phy = phy, x = dt, ret_dim = 2) doBiplot(x = ppca, add_margin = 0.3)
section
do3PCA.pdf
CRAN · 1.0.0 · Documentation · application/pdf · 80,882 · 2026-05-07
Title
do3PCA.pdf
Label
do3PCA.pdf

Reference for do3PCA (1.0.0)

3개 topic
ProbPCA
Probabilistic PCA
CRAN · 1.0.0 · do3PCA/man/ProbPCA.Rd · 2026-05-07

Function to perform (non-phylogenetic) probabilistic PCA. This function is a modification (fork) of Rdimtools::do.ppca .

Aliases
ProbPCA
Usage
ProbPCA(x, ret_dim = 2)
Arguments
x
a matrix with traits in columns and observations in rows.
ret_dim
number of dimensions (PC axes) to be kept by the model.
Details
This function uses the same algorithm as Rdimtools::do.ppca. However, it returns more details from the estimation and computes AIC and AICc. The function returns a list with the following elements. scores: the scores of the principal components; projection: the eigenvectors; sig: the MLE of the error of the model; mle.W: the MLE of the W matrix: varnames: the names of the traits; loglik: the log-likelihood of the estimate. Function also returns AIC, AICc, and BIC for the model.
Value
returns a list of class "phylPPCA". See "Details" for more information.
Examples
dt <- as.matrix( ratematrix::anoles$data[,1:3] ) ppca <- ProbPCA(x = dt, ret_dim = 2) doBiplot(x = ppca, add_margin = 0.3)
References
Tipping, M. E., and C. M. Bishop. 1999. Probabilistic Principal Component Analysis. Journal of the Royal Statistical Society Series B: Statistical Methodology 61(3):611–622. doi: 10.1111/1467-9868.00196
doBiplot
Make biplot for any type of PCA
CRAN · 1.0.0 · do3PCA/man/doBiplot.Rd · 2026-05-07

Function to make biplots for any kind of PCA. It accepts the outputs from standard PCA (princomp and prcomp). It also works with the "phylProbPCA" and "ProbPCA" functions. It provides more options to the plot than the standard "stats::biplot".

Aliases
doBiplot
Usage
doBiplot(x, choices = 1L:2L, scale = 1, pc.biplot = FALSE, col, ...)
Arguments
x
output from PCA analysis.
choices
numeric vector of length 2. Use to choose which of the PC axes to plot. Default plots first and second axes: "choices = c(1,2)".
scale
numeric value between 0 and 1. Same as in "stats::biplot.princomp". See ?biplot.princomp for more information.
pc.biplot
logical. If TRUE it will produce a "principal component biplot" (sensu Gabriel, 1971). Same as in "stats::biplot.princomp". See ?biplot.princomp for more information.
col
character vector of length 3 with the colors of the biplot. First color is used for the score points (or sample sames), second color for arrows and variable names, and third color for the right and top-side ticks (plot axes).
...
extra parameters for the function. Same as "stats::biplot".
Details
Function has the same options as "stats::biplot", with the addition of the following arguments. "plot_dimnames" controls is the names of the samples (species) will be plotted. "add_points" controls if the score points will be plotted. "add_margin" is a numeric value that expands the area of the plot. You can use this to make sure the names of variables and samples (species) fit the plot.
Value
makes a biplot of the PCA results.
Examples
phy <- ratematrix::anoles$phy[[1]] dt <- as.matrix( ratematrix::anoles$data[,1:3] ) ## Using probabilistic phylogenetic PCA phylppca <- phylProbPCA(phy = phy, x = dt, ret_dim = 2) doBiplot(x = phylppca, add_margin = 0.3) ## Using standard phylogenetic PCA phylpca <- phytools::phyl.pca(tree = phy, Y = dt) doBiplot(x = phylpca, add_margin = 0.3) ## Using probabilistic PCA ppca <- ProbPCA(x = dt) doBiplot(x = ppca, add_margin = 0.3) ## Using standard PCA pca1 <- princomp(x = dt) doBiplot(x = pca1, add_margin = 0.1) ## Using standard PCA pca2 <- prcomp(x = dt) doBiplot(x = pca2, add_margin = 0.1)
phylProbPCA
Probabilistic Phylogenetic PCA
CRAN · 1.0.0 · do3PCA/man/phylProbPCA.Rd · 2026-05-07

Function to perform probabilistic phylogenetic PCA. Allows for fit of alternative models of trait evolution using branch length transformation.

Aliases
phylProbPCA
Usage
phylProbPCA(phy, x, ret_dim = 2, model = "BM", quiet = FALSE)
Arguments
phy
phylogeny in "phylo" format.
x
a matrix with traits in columns and species values in rows. Rownames must match the tip labels of phylogeny.
ret_dim
number of dimensions (PC axes) to be kept by the model.
model
choice of model of trait evolution. One of "BM", "lambda", "OU", or "EB".
quiet
if function should suppress output to the console while running
Details
The function can be used to estimate the probabilistic phylogenetic PCA (3PCA) using distinct models of trait evolution. Models are implemented using branch length transformation. Model fitting happens in two steps. First the maximum likelihood of the evolutionary covariance matrix (R) and the parameter of the model is estimated. Then the 3PCA model is estimated using the phylogenetic tree with branch lengths transformed following the MLE for the parameter of each trait evolution model. The function returns a list with the following elements. scores: the scores of the principal components; e_values: eigenvalues; e_vectors: eigenvectors or the projection; model_fit: information about the trait evolution model; loadings: the loadings of the PCs; varnames: the names of the variables; sig: the MLE of the error; mle.W: the MLE of the W matrix; Function also returns AIC, AICc, and BIC for the model.
Value
returns a list of class "phylPPCA". See "Details" for more information.
Examples
phy <- ratematrix::anoles$phy[[1]] dt <- as.matrix( ratematrix::anoles$data[,1:3] ) ppca <- phylProbPCA(phy = phy, x = dt, ret_dim = 2) doBiplot(x = ppca, add_margin = 0.3)
References
Revell, L. J. 2009. Size-Correction and Principal Components for Interspecific Comparative Studies. Evolution 63:3258–3268. doi: 10.1111/j.1558-5646.2009.00804.x Revell, L. J. 2024. phytools 2.0: an updated R ecosystem for phylogenetic comparative methods (and other things). PeerJ 12:e16505. doi: 10.7717/peerj.16505 Tipping, M. E., and C. M. Bishop. 1999. Probabilistic Principal Component Analysis. Journal of the Royal Statistical Society Series B: Statistical Methodology 61(3):611–622. doi: 10.1111/1467-9868.00196

버전 이력

RepositoryVersionPublishedFirst seenLast seenDocs
CRAN1.0.02026-05-292026-05-30

보안

표시할 OSV 데이터가 없습니다.

문헌 신호

표시할 OpenAlex 데이터가 없습니다.