suggestColors: Suggests colors for symbols

View source: R/DepLogoR.R

suggestColorsR Documentation

Suggests colors for symbols

Description

Suggests colors for the symbols in data based on the co-occurrence of symbols at common positions, weighted by the dependency values at those positions. The idea is to assign similar colors only to symbols that either mostly occur at different positions or that are present at positions with low inter-dependencies to other positions.

Usage

suggestColors(data)

## S3 method for class 'DLData'
suggestColors(data)

Arguments

data

the data

Value

the colors

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

suggestColors(data)

DepLogo documentation built on May 29, 2024, 9:53 a.m.