Learn R Programming

sdtoolkit (version 2.33-1)

dimplot: Plot normalized dimension restrictions as horizontal bars

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

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.

See Also

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

Examples

Run this code
#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)

Run the code above in your browser using DataLab