plotMethProfile {M3D} | R Documentation |
Plots a smoothed methylation profile for each of the two testing groups. Within each group, the mean of methylation level is taken, smoothed and plotted, along with the individual values.
plotMethProfile(rrbs, CpGs, group1, group2, CpGindex, plot_title = NaN)
rrbs |
An rrbs object containing methylation and coverage data as created using the BiSeq pacakge |
CpGs |
A GRanges object with each row being a testing region |
group1 |
The name of the first testing group |
group2 |
The name of the second testing group |
CpGindex |
The index within the CpGs object of the region we are plotting |
plot_title |
Optional title for the plot, overrides automatic title |
NULL, the function plots the profiles
Tom Mayo t.mayo@ed.ac.uk
# plot the 9th region in the Toy Data Set data(rrbsDemo) data(CpGsDemo) plotMethProfile(rrbsDemo, CpGsDemo, 'H1-hESC', 'K562', 9)