plot_integrated_density_3D {OMICsPCA} | R Documentation |
works similarly as "plot_density_3D" . See vignettes and man page of "plot_density_3D" for more details.
plot_integrated_density_3D(name, PC1 = 1, PC2 = 2, group, gridsize = 100, static = FALSE, groupinfo = NULL, ...)
name |
Name of the integrated "PCA" object |
PC1, PC2 |
Numbers corresponding to the principal components on which density is to be calculated |
group |
Names of a group |
gridsize |
A number used in kernel smoothing. default is 100 |
static |
Logical if TRUE a static plot is generated. default = FALSE |
groupinfo |
same as integrate_variables() |
... |
additional arguments allowed to base function "persp" of package "graphics" |
2D density is calculated using the "kde2d"" function from package "MASS"" which use kernel density estimation (KDE) to calculate density of 2D data. If the variance on either or both of the PCs are 0, the KDE can't be calculated.
Displays 3D density plots.
Subhadeep Das <subhadeep1024@gmail.com>
exclude <- list(0,c(1,9)) int_PCA <- integrate_pca(Assays = c("H2az", "H3k9ac"), name = multi_assay, mergetype = 2, exclude = exclude, groupinfo = groupinfo_ext, ,graph = FALSE) name = int_PCA$int_PCA plot_integrated_density_3D(name = name, PC1 = 1, PC2 = 2, group = c("WE","RE"), gridsize = 100, static = FALSE, groupinfo = groupinfo_ext)