Learn R Programming

hierarchicalSets (version 1.0.1)

plot.HierarchicalSet: Visualize hierarchical sets

Description

This is the main visualization interface to hierarchicalSet object. By changing the type argument you control which types of plots are produced. See datails for a walkthrough of the different plot types. All plots are based on ggplot2 but heavily modified using gtable. Because of this the return value is always a gtable object, so it is not possible to add additional geoms, or change scales etc. on the result of plot().

Usage

## S3 method for class 'HierarchicalSet':
plot(x, label = TRUE, type = "dendrogram",
  transform = NULL, style = theme_bw(), quantiles = 0, upperBound = 1,
  tension = 0.8, alpha = 1, circular = TRUE, showHierarchy = !circular,
  evenHierarchy = circular, ...)

Arguments

x
A hierarchicalSet object to plot.
label
logical. Should sets be labeled.
type
The type of plot to produce. See detail. The name of the type may be abbreviated.
transform
A string giving the scale transformation or a trans object.
style
A ggplot2 theme to use as basis for the plot. Defaults to theme_bw().
quantiles
The quantiles to split outlying elements up in for outlying_elements plot. If length is above one a facetted plot will be produced.
upperBound
The upper quantile threshold to include. Defaults to 1 (i.e. everything is included)
tension
The tension used for the hierarchical edge bundles in outlying_elements plot. Defaults to 0.8
alpha
The alpha level for the edge bundles. Defaults to 1
circular
Logical. Should the hierarchical edge bundles be laid out in a circular layout.
showHierarchy
Logical. For intersectionStack plots, should a dendrogram mapping union sizes be drawn above the icicle plot. For outlying_elements plots should a dendrogram be plotted below (for circular) or to the left (for linear) of the edge bundles.
evenHierarchy
Logical. Should the heights of the dendrogram used for constructing the edge bundles be evened out.
...
Currently ignored

Value

  • A gtable object invisibly. This function is mainly called for the side effect of creating a plot.

Details

Currently 4 different plottypes are available:

[object Object],[object Object],[object Object],[object Object],[object Object]