plotProfile: Generate a plot of a feature's profile for one or two omics.

plotProfileR Documentation

Generate a plot of a feature's profile for one or two omics.

Description

Generate a plot of a feature's profile for one or two omics.

Usage

plotProfile(simulation, omics, featureIDS, drawReps = FALSE, groups = NULL)

Arguments

simulation

A MOSimulation object

omics

Character vector of the omics to simulate.

featureIDS

List containing the feature to show per omic. Must have the omics as the list names and the features as values.

drawReps

Logical to enable/disable the representation of the replicates inside the plot.

groups

Character vector indicating the groups to plot in the form "GroupX" (i.e. Group1)

Value

A ggplot2 object.

Examples

omic_list <- c("RNA-seq", "miRNA-seq")

rnaseq_options <- c(omicSim("miRNA-seq", totalFeatures = 2500))
rnaseq_simulation <- mosim(omics = omic_list,
                           omicsOptions = rnaseq_options)

plotProfile(rnaseq_simulation,
    omics = c("RNA-seq", "miRNA-seq"),
    featureIDS = list("RNA-seq"="ENSMUSG00000007682", "miRNA-seq"="mmu-miR-320-3p")
)


Neurergus/MOSim documentation built on Feb. 23, 2024, 8:29 a.m.