Create Object for Drawing Legend
Creates a ggplot
object containing a legend that is specific
to bivariate mapping.
bi_legend(pal, dim = 3, xlab, ylab, size)
pal |
A palette name; one of |
dim |
The dimensions of the palette, either |
xlab |
Text for desired x axis label on legend |
ylab |
Text for desired y axis label on legend |
size |
Size of axis labels |
A ggplot
object with a bivariate legend.
# construct 2x2 legend legend <- bi_legend(pal = "GrPink", dim = 2, xlab = "Higher % White ", ylab = "Higher Income ", size = 16) # print legend legend # construct 3x3 legend legend <- bi_legend(pal = "GrPink", dim = 3, xlab = "Higher % White ", ylab = "Higher Income ", size = 16) # print legend legend
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.