deprects: Rectangles of averaged colors

Description Usage Arguments Details Value Author(s) Examples

View source: R/DepLogoR.R

Description

Plots a representation of a set of sequences by rectangles of (scaled) averaged color values of the symbols at each position

Usage

1
deprects(part, yoff, ic.scale = TRUE)

Arguments

part

the set of sequences as DLData object

yoff

the offset in y-direction within the current plot

ic.scale

if TRUE, alpha values of colors will be assigned based on "information content" of the distribution at each position

Details

This function is a low-level plotting function (using rect, internally).

Value

the vertical (y) offset after this plot

Author(s)

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# 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]) )

# create high-level plot
plot(NULL, xlim = c(1, ncol(data$data) - 1), ylim = c(0, nrow(data$data)), 
    ylab = nrow(data$data), axes = FALSE)
# and add deprects and axis
deprects(data, yoff = nrow(data$data))
axis(1)

Jstacs/DepLogo documentation built on April 22, 2021, 1:21 a.m.