visualizeSegments {sesame} | R Documentation

## Visualize segments

### Description

The function takes a `CNSegment` object obtained from cnSegmentation and plot the bin signals and segments (as horizontal lines).

### Usage

    visualizeSegments(seg, to.plot = NULL)

### Arguments

`seg` | a `CNSegment` object
`to.plot` | chromosome to plot (by default plot all chromosomes)

### Details

require ggplot2, scales

### Value

plot graphics

### Examples

    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()

[Package sesame version 1.12.9 Index]