plot_density: Visualization of Density of various groups on Principal...

Description Usage Arguments Value Author(s) Examples

View source: R/plot_density.R

Description

This function displays density of individuals

Usage

1
2
plot_density(name, Assay, PC = 1, groups,
groupinfo = NULL, ...)

Arguments

name

Name of the "PCA" object containing the assay data

Assay

Name of an Assay

PC

A number corresponding to the principal component on which density is to be calculated

groups

A vector of names or subset of names of groups

groupinfo

same as integrate_variables()

...

additional arguments of base function "geom_density" from package "ggplot2"

Value

a "gg" "ggplot" object

Author(s)

Subhadeep Das <subhadeep1024@gmail.com>

Examples

1
2
3
4
5
6
7
8
9
PCAlist <- integrate_variables(Assays = c("H2az","H3k4me1",
"H3k9ac"), name = multi_assay,
groups = c("WE","RE"), groupinfo = groupinfo_ext,
scale.unit = FALSE, graph = FALSE)

densityplot <- plot_density(name = PCAlist,
Assay = "H2az", groupinfo = groupinfo_ext,
PC = 1, groups = c("WE","RE"),
adjust = 1)

subhadeep1024/OMICsPCA documentation built on March 17, 2020, 5:23 p.m.