subLines: Plots weights as lines

Description Usage Arguments Author(s) Examples

View source: R/DepLogoR.R

Description

Plots a representation of the weights of a list of DLData objects. Each entry of the list is shown as an independent line with the median value shown as a red vertical line. Plots of list entries are separated by horizontal grey lines.

Usage

1
subLines(sub.parts, range, axis.above = TRUE, axis.below = TRUE)

Arguments

sub.parts

a list of DLData objects

range

the range of values shown in the plot (i.e., the xlim value of the call to plot)

axis.above

if TRUE, an axis at the top of the plot (side=3) is shown

axis.below

if TRUE, an axis at the bottom of the plot (side=1) is shown

Author(s)

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

Examples

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

# create dependency logo with plotted weights
(data, threshold = 0.03, weight.fun = subLines)

DepLogo documentation built on April 17, 2021, 1:07 a.m.