dimplot {sdtoolkit} | R Documentation |
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.
dimplot(boxseq, boxind=1, alldims = FALSE, thetitle = NULL, incol = "lightblue", longcol = "black")
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() . |
Nothing returned, used for its plotting capability.
Benjamin P. Bryant, bryant@prgs.edu
See sdprim
for the primary algorithm, and seqinfo
for other display options.
#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)