displayStruc {stripless} | R Documentation |
Construct text For strucplot
legends.
Description
Construct character strings for print and legend functions to display on the console or lattice plot.
Usage
displayStruc(struc, heading = c("Horizontal", "Vertical"),
miss = "No Conditioning", abbrevLength = c(0, 0), ...)
Arguments
struc |
The "structure" attribute of a |
heading |
A character vector of length 2 giving the headings for the horizontal
and vertical conditioning variables portions of the legend. Default =
|
miss |
A character string to use when there is no conditioning either horizontally
or vertically. Default = |
abbrevLength |
Default = |
... |
Additional arguments, presently ignored |
Details
This is an exported auxiliary function that constructs the character strings for displaying plot structure on the console and possibly also in a legend on the lattice display. While not intended to be directly called by the user, it is exported for use by those who wish to supply custom legends for the lattice display.
Value
A character vector of length 2 giving character strings,
including \n
line breaks.
Examples
require(datasets)
# quakes data
#
# Create and save plot
out <- strucplot(lat ~ long|cut(mag,5)*cut(depth,4), data = quakes,
col="blue", main = "Earthquake locations, by magnitude and depth")
displayStruc(attr(out,"structure"))