Function gridplot
plots multiple ssp
objects to a
grid.
gridplot(
x,
nrow = NA,
ncol = NA,
byrow = FALSE,
with.legend = "auto",
legend.pos = "auto",
legend.pos2 = "center",
title.legend = "auto",
ncol.legend = "auto",
with.missing.legend = "auto",
row.prop = "auto",
col.prop = "auto",
cex.legend = 1
)
A list of ssp()
objects.
Optional arguments to arrange plots.
Controls the order of plotting. Defaults to FALSE
, i.e. plots
are arranged column-wise.
Defines if and how the legends for the states are plotted.
The default value "auto"
(equivalent to TRUE
and
"many"
) creates separate legends for each requested plot. Other
possibilities are "combined"
(all legends combined) and FALSE
(no legend).
Defines the positions of the legend boxes relative to the
whole plot. Either one of "bottom"
(equivalent to "auto"
) or
"right"
, or a numerical vector of grid cells (by order) to print the
legends to (the cells must be in one row/column).
Defines the positions of the legend boxes relative to the
cell(s). One of "bottomright"
, "bottom"
, "bottomleft"
,
"left"
, "topleft"
, "top"
(the default), "topright"
,
"right"
and "center"
.
The titles for the legend boxes. The default "auto"
takes
the titles from the channel labels provided by the first object in x
.
NA
prints no title.
(A vector of) the number of columns for the legend(s). The
default "auto"
creates one column for each legend.
If set to "auto"
(the default), a legend
for the missing state is added automatically if one or more of the
sequences in data contain missing states. With the value TRUE
a
legend for the missing state is added in any case; equivalently
FALSE
omits the legend for the missing state.
Sets the proportions of the row heights of the grid. The default
value is "auto"
for even row heights. Takes a vector of values from
0 to 1, with values summing to 1.
Sets the proportion of the column heights of the grid. The default
value is "auto"
for even column widths. Takes a vector of values
from 0 to 1, with values summing to 1.
Expansion factor for setting the size of the font for the labels in the legend. The default value is 1. Values lesser than 1 will reduce the size of the font, values greater than 1 will increase the size.