Plot bivariate relationships between all combinations of candidates and race/ethnicities
plot_bivariate(
data,
cand_cols,
race_cols,
corrs = FALSE,
save = FALSE,
path = NULL
)
ggplot object with bivariate plots faceted by candidate and race
A data.frame() object containing precinct-level turnout data by race and candidate
A character vector listing the column names for turnout for each candidate
A character vector listing the column names for turnout by race
A boolean indicating whether to include correlation coefficients on the plot.
A boolean indicating whether to save the plot to a file.
A string to specify plot save location. If NULL, plot is not saved.