Make color/size legend
make_plot_legend(x, y, length, width_range, width_trans_range = NULL,
width_stat_range, group_prefix, tick_size = 0.008,
width_stat_trans = function(x) { x }, width_title = "Size",
width_sig_fig = 3, color_range, color_trans_range = NULL,
color_stat_range, color_stat_trans = function(x) { x },
color_title = "Color", color_sig_fig = 3, divisions = 100,
label_count = 7, title = NULL, label_size = 0.09,
title_size = 0.11, axis_label_size = 0.11, color_axis_label = NULL,
size_axis_label = NULL, hide_size = FALSE, hide_color = FALSE)bottom left
bottom left
(numeric of length 1) the length of the scale bar
(numeric of length 1 or 2) the width of the scale bar or the range
(numeric of length 1 or 2) The stat range to display in the size labels
(character of length 1) The prefix of the group field in the shape data returned
(numeric of length 1) the thickness of tick marks
(function) The transformation used to convert the statistic to size
(character of length 1) The title of the size labels.
(numeric of length 1) The number of significant figures to use in size labels.
(character) One ore more hex codes constituting a color scale.
(numeric of length 1 or 2) The stat range to display in the color labels
(function) The transformation used to convert the statistic to size
(character of length 1) The title of the color labels.
(numeric of length 1) The number of significant figures to use in color labels.
(numeric of length 1) The number of colors to display.
(numeric of length 1) The number of labels.
(character of length 1) The title of the legend
(numeric of length 1)
(character of length 1) The label for the color axis
(character of length 1) The label for the size axis
(logical of length 1) If TRUE hide size axis
(logical of length 1) If TRUE hide color axis