plot.syntheticNucReads: Generate a graph of a synthetic nucleosome map containing...

Description Usage Arguments Value Author(s) Examples

View source: R/nucleoSimFunctions.R

Description

Generate a graph for a list marked as an syntheticNucReads class

Usage

1
2
## S3 method for class 'syntheticNucReads'
plot(x, ...)

Arguments

x

a list marked as a syntheticNucReads class

...

... extra arguments passed to the plot function

Value

a graph of a synthetic nucleosome map containing forward and reverse reads

Author(s)

Astrid Deschenes, Rawane Samb

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Generate a synthetic map with 20 well-positioned nucleosomes, 5 fuzzy
## nucleosomes and 10 deleted nucleosomes using a Student distribution
## with a variance of 10 for the well-positioned nucleosomes,
## a variance of 20 for the fuzzy nucleosomes and a seed of 15
syntheticNucSample <- syntheticNucReadsFromDist(wp.num = 30, wp.del = 10,
wp.var = 10, fuz.num = 5, fuz.var = 20, rnd.seed = 15,
distr = "Student", offset = 1000)

## Create graph using the synthetic map
plot(syntheticNucSample, xlab="Position", ylab="Coverage")

nucleoSim documentation built on May 6, 2019, 2:17 a.m.