replaceColors {DepLogo}R Documentation

Replaces colors in DLData object

Description

Replaces colors in DLData object

Usage

replaceColors(data, colors)

## S3 method for class 'DLData'
replaceColors(data, colors)

Arguments

data

the data

colors

the new colors

Value

the modified DLData object

Author(s)

Jan Grau <grau@informatik.uni-halle.de>

See Also

replaceColors

Examples

# read data and create DLData object
seqs <- read.table(system.file("extdata", "cjun.txt", package = "DepLogo"), 
    stringsAsFactors = FALSE)
data <- DLData(sequences = seqs[, 1], weights = log1p(seqs[, 2]) )

replaceColors(data, c("red", "green", "blue", "yellow"))

[Package DepLogo version 1.2.1 Index]