Makes the calls to scale_fill_* and scale_color_*, depending on whether color/fill and the palette type needed
handle_palettes.RdUses aes_type to know the color/fill, and color_type (from find_color_type()) to know what ggplot function to use to add the color. Needs to handle any color trans as well with transoutcome
Arguments
- ggobj
The in-construction ggplot object
- aes_type
'color' or 'fill'
- pal_list
list of palettes for defining colors for
colorset. Should be length ofcolorgroups- color_type
from
find_color_type()- transoutcome
transformation for outcome as in
ggplot2::scale_y_continuous()orggplot2::scale_fill_continuous(). Defaulttransoutcome = 'identity'just uses the data. Most common change likelytransoutcome = 'log10- setLimits
sets user-supplied color/fill limits or midpoints for maps, heatmaps, and networks, or y limits for other plots. Also sets
underlayandoverlaylimits for consistency.NULL (default) use internally-calculated limits
length-1 numeric, sets midpoint, limits stay auto-calculated. V. useful for divergent
length-2 numeric, sets lower and upper limits
length-3 numeric, sets limits and midpoint
c(lower, mid, upper), with caveat that one limit may be ignored (must be symmetrical about the midpoint)if base_list is 'difference' or 'relative', midpoints are auto-set at 0 or 1 (respectively) unless otherwise specified here.
- pal_direction
vector of length pal_list, either 1 (default) or -1 (reversed) direction of the palettes
- base_list
NULL (default) or named list of arguments to
baseline_compare();base_lev
comp_fun
group_cols
plot_data_prep()handleszero_adjust, and other arguments are inferred or not supported Ifcomp_funis 'difference' or 'relative', midpoint auto-set at 0 or 1 respectively unless otherwise specified withsetLimits
- nbins
number of bins for contours