View source: R/Visualizations.R
FnPCA | R Documentation |
This function creates a 2-component PCA plot using logit(fn) estimates.
FnPCA
has been deprecated in favor of FnPCA2
. The latter accepts a full
bakRFit as input and handles imbalanced replicates.
FnPCA(obj, log_kdeg = FALSE)
obj |
Object contained within output of |
log_kdeg |
Boolean; if TRUE, then log(kdeg) estimates used for PCA rather than logit(fn). Currently only compatible with Fast_Fit |
A ggplot object.
# Simulate data for 500 genes and 2 replicates
sim <- Simulate_bakRData(500, nreps = 2)
# Fit data with fast implementation
Fit <- bakRFit(sim$bakRData)
# Fn PCA
FnPCA2(Fit, Model = "MLE")
# log(kdeg) PCA
FnPCA2(Fit, Model = "MLE", log_kdeg = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.