dimplot: Plot normalized dimension restrictions as horizontal bars

Description Usage Arguments Value Author(s) See Also Examples

View source: R/dimplot.r

Description

This function takes the output of sdprim and displays the dimension restrictions for a given box, normalized by the range of the data along each dimension.

Usage

1
2
dimplot(boxseq, boxind=1, alldims = FALSE, thetitle = NULL, 
                incol = "lightblue", longcol = "black")

Arguments

boxseq

A box sequence object, as output by sdprim.

boxind

An integer, indicating which box in the box sequence to plot.

alldims

Logical, whether or not to plot all dimensions, or just those that have some dimension restrictions.

thetitle

Character, title to put on the plot. If none supplied, will default to “Normalized Dimension Restrictions”.

incol

What color to use for the portion of the barplot representing the inside-the-box range. Must be one of those in colors().

longcol

What color to use for the portion of the barplot covering values outside the box, extending from zero to unity. Must be one of those in colors().

Value

Nothing returned, used for its plotting capability.

Author(s)

Benjamin P. Bryant, bryant@prgs.edu

See Also

See sdprim for the primary algorithm, and seqinfo for other display options.

Examples

1
2
3
4
5
6
7
8
9
#Load an example box object
data(exboxes)

#Plot the first box with only the restricted dimensions shown:
dimplot(exboxes, 1)

#Plot the second box showing all the dimensions, whether or not
#they are restricted:
dimplot(exboxes, 2, alldims=TRUE)

sdtoolkit documentation built on May 2, 2019, 6:04 a.m.

Related to dimplot in sdtoolkit...