Build a point size legend plot

point_size_legend_plot(
  min_val = 0,
  max_val = 1,
  max_size = 6,
  scale_name = "Fraction of cells",
  n_sizes = 6
)

Arguments

min_val

numeric, the minimum value in the plot scale (default = 0)

max_val

numeric, the maximum value in the plot scale (default = 1)

max_size

numeric, the max size of the point scale (default = 6, default for ggplot2::scale_size_area() )

n_sizes

numeric, the number of points in the scale from min_val to max_val, inclusive (default = 6)

ggplot2::scale_name

character, the name for the values displayed (default = "Fraction of cells")

Value

a ggplot2 point size legend plot