plotReferenceDistribution: Function to create reference distribution plot for comparison

Description Usage Arguments Value Examples

View source: R/ComparisonFunctions.R

Description

Creates a density plot (in pdf) for the sample against the reference distribution (density plots) of the compendium values stratified by chromatin marks.

plotReferenceDistribution

Usage

1
2
plotReferenceDistribution(target, metricToBePlotted = "RSC",
    currentValue, savePlotPath = NULL)

Arguments

target

String, chromatin mark or transcription factor to be analysed. Use listAvailableElements() function to check availability.

metricToBePlotted

The metric to be plotted (Default='RSC')

currentValue

The value of the current sample

savePlotPath

if set the plot will be saved under 'savePlotPath'. Default=NULL and plot will be forwarded to stdout.

Value

nothing, creates a figure under 'savePlotPath'

Examples

1
2
3
4
5
6
7
8
9
print ('Plot distribution of RSC')
## Not run: 
filepath=tempdir()
setwd(filepath)

plotReferenceDistribution(target="H3K4me1", 
    metricToBePlotted="RSC", currentValue=0.49, savePlotPath=filepath)

## End(Not run)

ChIC documentation built on Nov. 8, 2020, 5:15 p.m.