legend_resbased(fontsize = 12,
x = unit(1, "lines"), y = unit(0.1,"npc"),
height = unit(0.8, "npc"),
width = unit(0.7, "lines"),
digits = 3, check_overlap = TRUE, text = NULL,
steps = 200, ticks = 10, pvalue = TRUE, range = NULL)
legend_fixed(fontsize = 12, x = unit(1, "lines"), y = NULL,
height = NULL, width = unit(1.5, "lines"), steps = 200,
digits = 1, space = 0.05, text = NULL, range = NULL)
"unit"
indicating the coordinates
of the title. For legend_fixed
, the default for y
is
computed as to leave enough space for the specified text
."unit"
indicating the
height/width of the legend. For legend_fixed
, the default for
y
is computed as to align upper margins of legend and actual plot.legend_fixed
only: proportion of space
between the tiles.NA
values are
replaced by the corresponding minimum / maximum of the residuals.text
argument is specified. Allows strucplot to generate
sensible defaults depending on the residuals type.legend_fixed
is inspired by the legend used in
mosaicplot
. For
more details on the shading functions and their return values, see
shadings
.vignette("strucplot")
. Meyer, D., Zeileis, A., Hornik, K. (2003), Visualizing independence using
extended association plots. Proceedings of the 3rd International
Workshop on Distributed Statistical Computing, K. Hornik, F. Leisch,
A. Zeileis (eds.), ISSN 1609-395X.
structable
,
shadings
data("Titanic")
mosaic(Titanic, shade = TRUE, legend = legend_resbased)
mosaic(Titanic, shade = TRUE, legend = legend_fixed, gp = shading_Friendly)
Run the code above in your browser using DataLab