DepLogo (version 1.0)

subBoxes: Plot weights as boxplots

Description

Plots a representation of the weights of a list of DLData objects. Each entry of the list is shown as an independent boxplot.

Usage

subBoxes(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

Examples

Run this code
# NOT RUN {
# 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
plotDeplogo(data, threshold = 0.03, weight.fun = subBoxes)
# }

Run the code above in your browser using DataCamp Workspace