In order to to construct a full pair matrix. This function has to be called for each part (lower corner, upper corner, diagonal). The call on diagonal should be last in order to have access to neighbour subplots metadata.
mapplot.Rd
In order to to construct a full pair matrix. This function has to be called for each part (lower corner, upper corner, diagonal). The call on diagonal should be last in order to have access to neighbour subplots metadata.
Usage
mapplot(
data,
mapping,
pairs,
grobs,
indices,
func,
no_upper,
no_lower,
xlim_func = NULL,
ylim_func = NULL,
diag_share_lim = TRUE,
common_scale = NULL,
check.overlap = TRUE,
neighbours = NULL,
scale_diag_plot = TRUE,
...
)
Arguments
- xlim_func
See
pairgrid()
parametercommon_xlim
(equivalent).- ylim_func
A function to set y axis limits. If set in conjunction with
diag_share_lim
set to TRUE, plots on the ylimit, will have their ylim set in common.- diag_share_lim
If set to TRUE. Y and X axis limits will also use
ylim_func
. pair_geom_histogram for an example.- check.overlap
- neighbours
A map (named list) or
NULL
. Map of the form:subplot_index=list(t=<int|NULL>, b=<int|NULL>, l=<int|NULL>, r=<int|NULL>)
If not NULL, the function callfunc()
will include the data in argumentneighbour_ggdata
from the neighbour(s):func(neighbour_ggdata=list(t=ggplot_build(grobs_index[[t_index]])), etc.)
. There are no checks whether the selected grobs exist. Checks are reserved to function callingmapplot
.- scale_diag_plot
See
pairgrid()