plot_density {OMICsPCA} | R Documentation

## Visualization of Density of various groups on Principal components

### Description

This function displays density of individuals

### Usage

    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

    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)

[Package OMICsPCA version 1.10.0 Index]