optimizeStyle: Optimize the style of plot

View source: R/optimizeStyle.R

optimizeStyleR Documentation

Optimize the style of plot

Description

Automatic optimize the stlye of trackViewer

Usage

optimizeStyle(trackList, viewerStyle = trackViewerStyle(), theme = NULL)

Arguments

trackList

An object of trackList

viewerStyle

An object of trackViewerStyle

theme

A character string. Could be "bw", "col" or "safe".

Value

a list of a trackList and a trackViewerStyle

See Also

See Also as viewTracks

Examples

extdata <- system.file("extdata", package="trackViewer",
                       mustWork=TRUE)
files <- dir(extdata, ".wig")
tracks <- lapply(paste(extdata, files, sep="/"), 
                 importScore, format="WIG")
re <- optimizeStyle(trackList(tracks))
trackList <- re$tracks
viewerStyle <- re$style

jianhong/trackViewer documentation built on Nov. 10, 2024, 10:33 a.m.