| gg_wfl | R Documentation | 
Waffle Plot of votes, colored
gg_wfl(
  tbl_indiv,
  var,
  nrows = 31,
  rev = FALSE,
  office_nam = NULL,
  blank = FALSE,
  legend = FALSE,
  title_size = 0.8,
  check_ncand = TRUE
)
tbl_indiv | 
 A wide dataset of individual votes  | 
var | 
 The variable in the dataset to use as the colors  | 
nrows | 
 number of rows and columns  | 
office_nam | 
 Title of the office. If NULL, use recode_abbrv of variable name  | 
 ## Not run: 
   w_prez <- filter(wide, elec %in% c("2012-11-06", "2016-11-08"))
   gg_wfl(filter(w_prez, PRS_party == 1), USH_party, nrows = 10)
  
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.