plotReferenceDistribution: Function to create reference distribution plot for comparison

Description Usage Arguments Value Examples

View source: R/plotReferenceDistribution.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
3
4
5
6
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)

carmencita/CHIC documentation built on May 2, 2021, 5:09 p.m.