Plot bivariate relationships between all combinations of candidates and race/ethnicities
plot_bivariate(
data,
cand_cols,
race_cols,
corrs = FALSE,
save = FALSE,
path = ""
)
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. Defaulted to working directory
ggplot object with bivariate plots faceted by candidate and race