| visualizeSegments {sesame} | R Documentation |
The function takes a CNSegment object obtained from cnSegmentation
and plot the bin signals and segments (as horizontal lines).
visualizeSegments(seg, to.plot = NULL)
seg |
a |
to.plot |
chromosome to plot (by default plot all chromosomes) |
require ggplot2, scales
plot graphics
sesameDataCache("EPIC") # in case not done yet
sdf <- sesameDataGet('EPIC.1.SigDF')
sdfs.normal <- sesameDataGet('EPIC.5.SigDF.normal')[1:3]
seg <- cnSegmentation(sdf, sdfs.normal)
visualizeSegments(seg)
# release memory for Windows package builder
rm(list=ls(env=sesameData:::cacheEnv), envir=sesameData:::cacheEnv)
gc()