Useful for creating common shape legend for multiple scatter plots

get_shape_legend(batch, my_shape_palette)

Arguments

batch

factor or vector of the batch labels

my_shape_palette

a vector of numbers corresponding to the shape palette http://www.sthda.com/english/wiki/ggplot2-point-shapes