-
Wikipedia Election Map scales for ggplot2
+
Wikipedia Style Election Map scales for ggplot2
diff --git a/search.json b/search.json
index 363be2a..4ad71ef 100644
--- a/search.json
+++ b/search.json
@@ -1 +1 @@
-[{"path":"https://alarm-redist.github.io/ggredist/LICENSE.html","id":null,"dir":"","previous_headings":"","what":"MIT License","title":"MIT License","text":"Copyright (c) 2022 Cory McCartan Christopher T. Kenny Permission hereby granted, free charge, person obtaining copy software associated documentation files (“Software”), deal Software without restriction, including without limitation rights use, copy, modify, merge, publish, distribute, sublicense, /sell copies Software, permit persons Software furnished , subject following conditions: copyright notice permission notice shall included copies substantial portions Software. SOFTWARE PROVIDED “”, WITHOUT WARRANTY KIND, EXPRESS IMPLIED, INCLUDING LIMITED WARRANTIES MERCHANTABILITY, FITNESS PARTICULAR PURPOSE NONINFRINGEMENT. EVENT SHALL AUTHORS COPYRIGHT HOLDERS LIABLE CLAIM, DAMAGES LIABILITY, WHETHER ACTION CONTRACT, TORT OTHERWISE, ARISING , CONNECTION SOFTWARE USE DEALINGS SOFTWARE.","code":""},{"path":"https://alarm-redist.github.io/ggredist/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Cory McCartan. Author. Christopher T. Kenny. Author, maintainer.","code":""},{"path":"https://alarm-redist.github.io/ggredist/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"McCartan C, Kenny C (2023). ggredist: Scales, Geometries, Extensions 'ggplot2' Election Mapping. https://github.com/alarm-redist/ggredist, https://alarm-redist.org/ggredist/.","code":"@Manual{, title = {ggredist: Scales, Geometries, and Extensions of 'ggplot2' for Election Mapping}, author = {Cory McCartan and Christopher T. Kenny}, year = {2023}, note = {https://github.com/alarm-redist/ggredist, https://alarm-redist.org/ggredist/}, }"},{"path":"https://alarm-redist.github.io/ggredist/index.html","id":"ggredist-","dir":"","previous_headings":"","what":"Scales, Geometries, and Extensions of ggplot2 for Election Mapping","title":"Scales, Geometries, and Extensions of ggplot2 for Election Mapping","text":"ggredist provides ggplot2 extensions political mapmaking, including new geometries, easy label generation placement, automatic map coloring, map scales, palettes, themes. ’s example can package. See reference.","code":"library(ggredist) library(ggplot2) data(oregon) ggplot(oregon, aes(group=cd_2020)) + # 'ndv' and 'nrv' contain D and R vote counts geom_district(aes(fill=ndv, denom=ndv+nrv), linewidth=0.9) + geom_district_text() + # can then highlight towns and cities geom_places(state = 'OR') + # we can overlay county boundaries and labels geom_district(aes(group=county), linewidth=0.2, linetype=\"dashed\", fill=NA) + geom_district_text(aes(group=county, label=toupper(county)), size=2.2, check_overlap=TRUE) + scale_fill_party_b(limits=c(0.4, 0.6)) + theme_map()"},{"path":"https://alarm-redist.github.io/ggredist/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Scales, Geometries, and Extensions of ggplot2 for Election Mapping","text":"can install development version ggredist GitHub :","code":"# install.packages(\"remotes\") remotes::install_github(\"alarm-redist/ggredist\")"},{"path":"https://alarm-redist.github.io/ggredist/reference/StatCityRoad.html","id":null,"dir":"Reference","previous_headings":"","what":"Annotate a Map with Roads and Cities — stat_cities","title":"Annotate a Map with Roads and Cities — stat_cities","text":"Clips interstates cities datasets bounding box map plots .","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/StatCityRoad.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Annotate a Map with Roads and Cities — stat_cities","text":"","code":"stat_cities( mapping = NULL, data = NULL, geom = ggplot2::GeomSf, position = \"identity\", na.rm = FALSE, adjust = 1, min_pop = 1e+05, show.legend = NA, inherit.aes = TRUE, ... ) stat_interstates( mapping = NULL, data = NULL, geom = ggplot2::GeomSf, position = \"identity\", na.rm = FALSE, show.legend = NA, inherit.aes = TRUE, ... )"},{"path":"https://alarm-redist.github.io/ggredist/reference/StatCityRoad.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Annotate a Map with Roads and Cities — stat_cities","text":"mapping Set aesthetic mappings created aes() data data displayed layer geom geometric object use display data position Position adjustment na.rm TRUE, silently remove missing values calculations adjust multiplicative scaling factor default label sizes min_pop minimum population city must 2006 shown. show.legend layer included legends? inherit.aes FALSE, overrides default aesthetics, rather combining . ... Passed onto underlying geoms.","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/StatCityRoad.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Annotate a Map with Roads and Cities — stat_cities","text":"ggproto object","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/StatCityRoad.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Annotate a Map with Roads and Cities — stat_cities","text":"","code":"library(ggplot2) data(oregon) ggplot(oregon, aes(group=cd_2020)) + geom_district() + stat_interstates(size=1.4, color=\"#0044aa55\") + stat_cities(geom=\"text\", min_pop=130e3, fontface=\"bold\", adjust=0.8) + scale_fill_penn82() + theme_map()"},{"path":"https://alarm-redist.github.io/ggredist/reference/StatDistrict.html","id":null,"dir":"Reference","previous_headings":"","what":"Aggregate and Plot Map Regions — geom_district","title":"Aggregate and Plot Map Regions — geom_district","text":"Aggregates shapefile according group aesthetic. just group provided, default map regions colored group adjacent regions share color (set fill force particular color, NA fill). fill provided, values fill summed within groups defined group. denom provided, values denom summed within groups defined group, used divide summed values fill. example, fill denom can used together plot partisan demographic characteristics congressional districts (see examples).","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/StatDistrict.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Aggregate and Plot Map Regions — geom_district","text":"","code":"geom_district( mapping = NULL, data = NULL, position = \"identity\", na.rm = FALSE, is_coverage = FALSE, min_col = FALSE, buffer = 0, show.legend = NA, inherit.aes = TRUE, ... ) stat_district( mapping = NULL, data = NULL, geom = GeomDistrict, position = \"identity\", na.rm = FALSE, is_coverage = FALSE, min_col = FALSE, buffer = 0, show.legend = NA, inherit.aes = TRUE, ... )"},{"path":"https://alarm-redist.github.io/ggredist/reference/StatDistrict.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Aggregate and Plot Map Regions — geom_district","text":"mapping Set aesthetic mappings created aes() data data displayed layer position Position adjustment na.rm TRUE, silently remove missing values calculations is_coverage sf::st_union(). May speed plotting large shapefiles geos installed shapefile projected. min_col TRUE, try minimize number colors used. May necessary short palettes. buffer Optionally buffer merged geometries. Negative values shrink geometries towards center can used \"glowing boundary\" effect (see examples). show.legend layer included legends? inherit.aes FALSE, overrides default aesthetics, rather combining . ... Passed onto underlying geoms. geom geometric object use display data","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/StatDistrict.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Aggregate and Plot Map Regions — geom_district","text":"ggproto object","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/StatDistrict.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Aggregate and Plot Map Regions — geom_district","text":"","code":"library(ggplot2) data(oregon) ggplot(oregon, aes(group=county)) + geom_district() + scale_fill_penn82() + theme_map() ggplot(oregon, aes(group=county, fill=pop)) + geom_district() + theme_map() ggplot(oregon, aes(group=cd_2020, fill=ndv, denom=ndv+nrv)) + geom_district() + scale_fill_party_c(limits=c(0.4, 0.6)) + theme_map() ggplot(oregon, aes(group=county)) + geom_district() + geom_district(buffer=-5000, fill=\"#ffffffcc\", color=NA) + scale_fill_natgeo() + theme_map()"},{"path":"https://alarm-redist.github.io/ggredist/reference/StatDistrictCoordinates.html","id":null,"dir":"Reference","previous_headings":"","what":"Label Map Regions — geom_district_text","title":"Label Map Regions — geom_district_text","text":"Aggregates shapefile according group aesthetic positions labels region defined group. default, labels sized rough proportion available area.","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/StatDistrictCoordinates.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Label Map Regions — geom_district_text","text":"","code":"geom_district_text( mapping = NULL, data = NULL, position = \"identity\", na.rm = FALSE, adjust = 1, check_overlap = FALSE, parse = FALSE, show.legend = NA, inherit.aes = TRUE, ... ) geom_district_label( mapping = NULL, data = NULL, position = \"identity\", na.rm = FALSE, label.padding = ggplot2::unit(0.25, \"lines\"), label.r = ggplot2::unit(0.15, \"lines\"), label.size = 0.25, check_overlap = FALSE, parse = FALSE, adjust = 1, show.legend = NA, inherit.aes = TRUE, ... ) stat_district_coordinates( mapping = NULL, data = NULL, geom = \"text\", position = \"identity\", na.rm = FALSE, adjust = 1, show.legend = NA, inherit.aes = TRUE, ... )"},{"path":"https://alarm-redist.github.io/ggredist/reference/StatDistrictCoordinates.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Label Map Regions — geom_district_text","text":"mapping Set aesthetic mappings created aes() data data displayed layer position Position adjustment na.rm TRUE, silently remove missing values calculations adjust multiplicative scaling factor default label sizes check_overlap TRUE, text overlaps previous text layer plotted. parse TRUE, labels parsed expressions displayed described ?plotmath. show.legend layer included legends? inherit.aes FALSE, overrides default aesthetics, rather combining . ... Passed onto underlying geoms. label.padding Padding around label label.r Radius rounded corners label.size Size label border (mm) geom geometric object use display data","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/StatDistrictCoordinates.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Label Map Regions — geom_district_text","text":"ggproto object","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/StatDistrictCoordinates.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Label Map Regions — geom_district_text","text":"","code":"library(ggplot2) data(oregon) ggplot(oregon, aes(group=county)) + geom_district() + geom_district_text() + scale_fill_randmcnally() + theme_map() ggplot(oregon, aes(group=cd_2020)) + geom_district(lwd=0.9, color=\"#442222\") + geom_district(aes(group=county), lwd=0.4, lty=\"dashed\", fill=NA) + geom_district_text(aes(group=county, label=toupper(county)), size=2.2, check_overlap=TRUE) + geom_district_text(adjust=2) + scale_fill_penn82() + theme_map()"},{"path":"https://alarm-redist.github.io/ggredist/reference/StatPlaces.html","id":null,"dir":"Reference","previous_headings":"","what":"Emphasize Populated Regions of a Map with greyed out Places — geom_places","title":"Emphasize Populated Regions of a Map with greyed out Places — geom_places","text":"Identifies relevant census places plots .","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/StatPlaces.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Emphasize Populated Regions of a Map with greyed out Places — geom_places","text":"","code":"geom_places( mapping = NULL, data = NULL, position = \"identity\", na.rm = FALSE, state = NULL, show.legend = NA, inherit.aes = TRUE, ... ) stat_places( mapping = NULL, data = NULL, geom = ggplot2::GeomSf, position = \"identity\", na.rm = FALSE, state = NULL, show.legend = NA, inherit.aes = TRUE, ... )"},{"path":"https://alarm-redist.github.io/ggredist/reference/StatPlaces.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Emphasize Populated Regions of a Map with greyed out Places — geom_places","text":"mapping Set aesthetic mappings created aes() data data displayed layer position Position adjustment na.rm TRUE, silently remove missing values calculations state state use. Guesses based overlap provided. show.legend layer included legends? inherit.aes FALSE, overrides default aesthetics, rather combining . ... Passed onto underlying geoms. geom geometric object use display data","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/StatPlaces.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Emphasize Populated Regions of a Map with greyed out Places — geom_places","text":"ggproto object","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/StatPlaces.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Emphasize Populated Regions of a Map with greyed out Places — geom_places","text":"","code":"library(ggplot2) data(oregon) ggplot(oregon, aes(group = cd_2020)) + geom_district() + theme_map() ggplot(oregon, aes(group = cd_2020)) + geom_district() + theme_map()"},{"path":"https://alarm-redist.github.io/ggredist/reference/cities.html","id":null,"dir":"Reference","previous_headings":"","what":"U.S. Cities — cities","title":"U.S. Cities — cities","text":"data contains location, name, 2020 population U.S. cities large towns.","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/cities.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"U.S. Cities — cities","text":"","code":"data(\"cities\")"},{"path":"https://alarm-redist.github.io/ggredist/reference/cities.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"U.S. Cities — cities","text":"sf object name City name. state City state. pop_2020 City population 2020 GEOID Census GEOID corresponding Census Designated Place. geometry sf geometry column containing geographic information.","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/cities.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"U.S. Cities — cities","text":"","code":"data(cities)"},{"path":"https://alarm-redist.github.io/ggredist/reference/ggredist.html","id":null,"dir":"Reference","previous_headings":"","what":"Redistricting Color Palettes — ggredist","title":"Redistricting Color Palettes — ggredist","text":"Included palettes: partisan, perceptually uniform red-white-blue scale dra, Dave's Redistricting App classic color palette penn82, historic categorical color palette 1982 published Pennsylvania congressional district map randmcnally natgeo, colors taken Rand-McNally National Geographic political maps coast larch, inspired natural scenery wiki_dem_pres: Wikipedia Presidential Democratic palette wiki_rep_pres: Wikipedia Presidential Republican palette wiki_dem: Wikipedia downballot Democratic palette wiki_rep: Wikipedia downballot Republican palette wiki_proposal: Wikipedia proposal support palette","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/ggredist.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Redistricting Color Palettes — ggredist","text":"","code":"ggredist"},{"path":"https://alarm-redist.github.io/ggredist/reference/ggredist.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Redistricting Color Palettes — ggredist","text":"list character vectors type palette (supports plot() generic visualization)","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/ggredist.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Redistricting Color Palettes — ggredist","text":"details Wikipedia-based colors, see https://en.wikipedia.org/wiki/Wikipedia:WikiProject_Elections_and_Referendums/USA_legend_colors.","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/ggredist.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Redistricting Color Palettes — ggredist","text":"","code":"plot(ggredist$partisan) plot(ggredist$dra) plot(ggredist$penn82) plot(ggredist$randmcnally) plot(ggredist$natgeo) plot(ggredist$coast) plot(ggredist$larch)"},{"path":"https://alarm-redist.github.io/ggredist/reference/interstates.html","id":null,"dir":"Reference","previous_headings":"","what":"Insterstate Shapefile — interstates","title":"Insterstate Shapefile — interstates","text":"data contains geometry information U.S. Interstate Highway System. processed U.S. Census Bureau TIGER/Line Shapefile system.","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/interstates.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Insterstate Shapefile — interstates","text":"","code":"data(\"interstates\")"},{"path":"https://alarm-redist.github.io/ggredist/reference/interstates.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Insterstate Shapefile — interstates","text":"sf object name Census Bureau name interstate geometry sf geometry column containing geographic information.","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/interstates.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Insterstate Shapefile — interstates","text":"","code":"data(interstates)"},{"path":"https://alarm-redist.github.io/ggredist/reference/label_party.html","id":null,"dir":"Reference","previous_headings":"","what":"Label Partisan Vote Shares — label_party_margin","title":"Label Partisan Vote Shares — label_party_margin","text":"example, 45% Democratic vote share becomes \"R+10\" \"55% R\".","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/label_party.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Label Partisan Vote Shares — label_party_margin","text":"","code":"label_party_margin(midpoint = 0.5, reverse = FALSE, accuracy = 1) label_party_pct(midpoint = 0.5, reverse = FALSE, accuracy = 1)"},{"path":"https://alarm-redist.github.io/ggredist/reference/label_party.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Label Partisan Vote Shares — label_party_margin","text":"midpoint Either 0.5, default, 0. label_party_margin(), zero, scale doubled (0.05 becomes \"D+5\" midpoint=0, 0.55 becomes \"D+10\" `midpoint=0.5) reverse TRUE, reverse \"D\" \"R\". accuracy scales::number_format","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/label_party.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Label Partisan Vote Shares — label_party_margin","text":"labeling function","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/label_party.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Label Partisan Vote Shares — label_party_margin","text":"","code":"labeler = label_party_margin(accuracy=0.1) labeler(c(0.3, 0.5, 0.543)) #> [1] \"R+40.0\" \"Even\" \"D+8.6\" labeler = label_party_margin(reverse=TRUE) labeler(c(0.3, 0.5, 0.543)) #> [1] \"D+40\" \"Even\" \"R+9\""},{"path":"https://alarm-redist.github.io/ggredist/reference/map_coloring.html","id":null,"dir":"Reference","previous_headings":"","what":"Produce a Map Coloring — map_coloring","title":"Produce a Map Coloring — map_coloring","text":"Finds colors every element shapefile adjacent elements color.","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/map_coloring.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Produce a Map Coloring — map_coloring","text":"","code":"map_coloring(shp, min_coloring = TRUE)"},{"path":"https://alarm-redist.github.io/ggredist/reference/map_coloring.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Produce a Map Coloring — map_coloring","text":"shp sf object min_coloring TRUE, try minimize number colors used","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/map_coloring.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Produce a Map Coloring — map_coloring","text":"integer vector length shp, corresponding coloring.","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/map_coloring.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Produce a Map Coloring — map_coloring","text":"","code":"data(oregon) or_short = oregon[30:50, ] map_coloring(or_short) #> [1] 1 3 1 2 1 4 3 2 1 4 3 2 3 2 1 3 3 1 4 2 4 library(ggplot2) ggplot(or_short, aes(fill = map_coloring(or_short))) + geom_sf() + theme_map()"},{"path":"https://alarm-redist.github.io/ggredist/reference/oregon.html","id":null,"dir":"Reference","previous_headings":"","what":"Oregon Redistricting File — oregon","title":"Oregon Redistricting File — oregon","text":"data contains geographic, demographic, political information 1,071 census tracts state Oregon.","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/oregon.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Oregon Redistricting File — oregon","text":"","code":"data(\"oregon\")"},{"path":"https://alarm-redist.github.io/ggredist/reference/oregon.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Oregon Redistricting File — oregon","text":"sf object county county tract belongs . cd_2020 2210 congressional district assignment tract. pop total population tract, according 2020 Census. pop_white non-Hispanic white population precinct. ndv Average number votes Democratic candidates recent statewide elections. nrv Average number votes Republican candidates recent statewide elections. geometry sf geometry column containing geographic information.","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/oregon.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Oregon Redistricting File — oregon","text":"","code":"data(oregon) oregon[, 1:6] #> Simple feature collection with 1071 features and 6 fields #> Geometry type: MULTIPOLYGON #> Dimension: XY #> Bounding box: xmin: 2163029 ymin: -185907.3 xmax: 2814746 ymax: 293445.7 #> Projected CRS: NAD83(HARN) / Oregon North #> # A tibble: 1,071 × 7 #> county cd_2020 pop pop_white ndv nrv geometry #> #> 1 Baker 2 2844 2552 369. 1312. (((2705037 125011.4, 2710726 1212… #> 2 Baker 2 3191 2738 498. 1251. (((2711347 127396.3, 2711327 1265… #> 3 Baker 2 2745 2390 392. 1247. (((2760731 96173.67, 2759438 8633… #> 4 Baker 2 3088 2758 148. 402. (((2711327 126595.8, 2711347 1273… #> 5 Baker 2 2749 2380 464. 1127 (((2709192 128933.2, 2698934 1477… #> 6 Baker 2 2051 1846 336. 932. (((2714628 150906.5, 2731447 1515… #> 7 Benton 4 4344 3161 1436. 458 (((2279770 100406.1, 2279322 1004… #> 8 Benton 4 3409 2308 1188. 394 (((2280644 102610.9, 2280706 1026… #> 9 Benton 4 5256 4233 2049. 908 (((2274712 99335.66, 2274240 1013… #> 10 Benton 4 2968 2340 1709. 373. (((2277555 106896, 2279606 105983… #> # ℹ 1,061 more rows"},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_538.html","id":null,"dir":"Reference","previous_headings":"","what":"FiveThirtyEight scales for ggplot2 — scale_fill_538","title":"FiveThirtyEight scales for ggplot2 — scale_fill_538","text":"FiveThirtyEight scales ggplot2","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_538.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"FiveThirtyEight scales for ggplot2 — scale_fill_538","text":"","code":"scale_fill_538(...) scale_color_538(...)"},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_538.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"FiveThirtyEight scales for ggplot2 — scale_fill_538","text":"... additional arguments ggplot::scale_* functions","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_538.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"FiveThirtyEight scales for ggplot2 — scale_fill_538","text":"ggplot scale function","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_538.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"FiveThirtyEight scales for ggplot2 — scale_fill_538","text":"","code":"scale_fill_538() #> #> aesthetics: fill #> after.stat: FALSE #> axis_order: function #> break_info: function #> break_positions: function #> breaks: 0 0.35 0.45 0.55 0.65 1 #> call: call #> clone: function #> dimension: function #> expand: waiver #> get_breaks: function #> get_breaks_minor: function #> get_labels: function #> get_limits: function #> guide: colourbar #> is_discrete: function #> is_empty: function #> labels: waiver #> limits: 0.25 0.75 #> make_sec_title: function #> make_title: function #> map: function #> map_df: function #> n.breaks: NULL #> na.value: NA #> name: waiver #> nice.breaks: TRUE #> oob: function #> palette: function #> position: left #> range: environment #> rescale: function #> rescaler: function #> reset: function #> right: TRUE #> scale_name: 538 #> show.limits: FALSE #> train: function #> train_df: function #> trans: trans #> transform: function #> transform_df: function #> super: scale_color_538() #> #> aesthetics: colour #> after.stat: FALSE #> axis_order: function #> break_info: function #> break_positions: function #> breaks: 0 0.35 0.45 0.55 0.65 1 #> call: call #> clone: function #> dimension: function #> expand: waiver #> get_breaks: function #> get_breaks_minor: function #> get_labels: function #> get_limits: function #> guide: colourbar #> is_discrete: function #> is_empty: function #> labels: waiver #> limits: 0.25 0.75 #> make_sec_title: function #> make_title: function #> map: function #> map_df: function #> n.breaks: NULL #> na.value: NA #> name: waiver #> nice.breaks: TRUE #> oob: function #> palette: function #> position: left #> range: environment #> rescale: function #> rescaler: function #> reset: function #> right: TRUE #> scale_name: 538 #> show.limits: FALSE #> train: function #> train_df: function #> trans: trans #> transform: function #> transform_df: function #> super: "},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_dra.html","id":null,"dir":"Reference","previous_headings":"","what":"Dave's Redistricting App classic scale for ggplot2 — scale_fill_dra","title":"Dave's Redistricting App classic scale for ggplot2 — scale_fill_dra","text":"Dave's Redistricting App classic scale ggplot2","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_dra.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Dave's Redistricting App classic scale for ggplot2 — scale_fill_dra","text":"","code":"scale_fill_dra(...) scale_color_dra(...) scale_colour_dra(...)"},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_dra.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Dave's Redistricting App classic scale for ggplot2 — scale_fill_dra","text":"... Arguments passed ggplot2::discrete_scale()","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_dra.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Dave's Redistricting App classic scale for ggplot2 — scale_fill_dra","text":"ggplot scale function","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_dra.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Dave's Redistricting App classic scale for ggplot2 — scale_fill_dra","text":"","code":"library(ggplot2) data(oregon) ggplot(oregon, aes(group = county, fill=county)) + geom_district() + scale_fill_dra() + theme_map()"},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_nature.html","id":null,"dir":"Reference","previous_headings":"","what":"Nature-derived Color Scales for ggplot2 — scale_fill_coast","title":"Nature-derived Color Scales for ggplot2 — scale_fill_coast","text":"Nature-derived Color Scales ggplot2","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_nature.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Nature-derived Color Scales for ggplot2 — scale_fill_coast","text":"","code":"scale_fill_coast(...) scale_color_coast(...) scale_colour_coast(...) scale_fill_larch(...) scale_color_larch(...) scale_colour_larch(...)"},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_nature.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Nature-derived Color Scales for ggplot2 — scale_fill_coast","text":"... Arguments passed ggplot2::discrete_scale()","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_nature.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Nature-derived Color Scales for ggplot2 — scale_fill_coast","text":"ggplot scale function","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_nature.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Nature-derived Color Scales for ggplot2 — scale_fill_coast","text":"","code":"library(ggplot2) data(oregon) ggplot(oregon, aes(group = county)) + geom_district() + scale_fill_coast() + theme_map() ggplot(oregon, aes(group = county)) + geom_district() + scale_fill_larch() + theme_map()"},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_party.html","id":null,"dir":"Reference","previous_headings":"","what":"Partisan scales for ggplot2 — scale_party","title":"Partisan scales for ggplot2 — scale_party","text":"Partisan scales ggplot2","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_party.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Partisan scales for ggplot2 — scale_party","text":"","code":"scale_fill_party_c( name = \"Vote share\", midpoint = 0.5, limits = 0:1, labels = label_party_pct(), oob = scales::squish, reverse = FALSE, ... ) scale_color_party_c( name = \"Vote share\", midpoint = 0.5, limits = 0:1, labels = label_party_pct(), oob = scales::squish, reverse = FALSE, ... ) scale_fill_party_d(labels = c(\"Rep.\", \"Dem.\"), reverse = FALSE, ...) scale_color_party_d(labels = c(\"Rep.\", \"Dem.\"), reverse = FALSE, ...) scale_fill_party_b( name = \"Vote share\", midpoint = 0.5, limits = 0:1, labels = label_party_pct(), oob = scales::squish, reverse = FALSE, nice.breaks = FALSE, ... ) scale_color_party_b( name = \"Vote share\", midpoint = 0.5, limits = 0:1, labels = label_party_pct(), oob = scales::squish, reverse = FALSE, nice.breaks = FALSE, ... ) scale_colour_party_d(labels = c(\"Rep.\", \"Dem.\"), reverse = FALSE, ...) scale_colour_party_c( name = \"Vote share\", midpoint = 0.5, limits = 0:1, labels = label_party_pct(), oob = scales::squish, reverse = FALSE, ... ) scale_colour_party_b( name = \"Vote share\", midpoint = 0.5, limits = 0:1, labels = label_party_pct(), oob = scales::squish, reverse = FALSE, nice.breaks = FALSE, ... )"},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_party.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Partisan scales for ggplot2 — scale_party","text":"name Name scale. Default \"Vote share\". midpoint Scale midpoint value. Default 0.5. limits Lower upper limits scale. Default 0:1. labels Function adjust scale labels. Default scales::percent. oob Function deal bounds. Default scales::squish(). reverse Whether reverse red blue. ... Additional arguments ggplot::scale_* functions nice.breaks TRUE, attempt place breaks nice values instead exactly evenly spaced limits.","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_party.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Partisan scales for ggplot2 — scale_party","text":"ggplot scale function","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_party.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Partisan scales for ggplot2 — scale_party","text":"","code":"library(ggplot2) data(oregon) ggplot(oregon, aes(fill = ndv / (ndv + nrv))) + geom_sf(size = 0) + scale_fill_party_c(limits=c(0.3, 0.7)) + theme_map() ggplot(oregon, aes(fill = ndv / (ndv + nrv))) + geom_sf(size = 0) + scale_fill_party_b() + theme_map()"},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_penn82.html","id":null,"dir":"Reference","previous_headings":"","what":"Historical Pennsylvania Color Scale for ggplot2 — scale_fill_penn82","title":"Historical Pennsylvania Color Scale for ggplot2 — scale_fill_penn82","text":"Historical Pennsylvania Color Scale ggplot2","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_penn82.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Historical Pennsylvania Color Scale for ggplot2 — scale_fill_penn82","text":"","code":"scale_fill_penn82(...) scale_color_penn82(...) scale_colour_penn82(...)"},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_penn82.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Historical Pennsylvania Color Scale for ggplot2 — scale_fill_penn82","text":"... Arguments passed ggplot2::discrete_scale()","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_penn82.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Historical Pennsylvania Color Scale for ggplot2 — scale_fill_penn82","text":"ggplot scale function","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_penn82.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Historical Pennsylvania Color Scale for ggplot2 — scale_fill_penn82","text":"","code":"library(ggplot2) data(oregon) ggplot(oregon, aes(group = county)) + geom_district() + scale_fill_penn82() + theme_map()"},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_polimap.html","id":null,"dir":"Reference","previous_headings":"","what":"Rand-McNally and National Geographic Color Scales for ggplot2 — scale_fill_randmcnally","title":"Rand-McNally and National Geographic Color Scales for ggplot2 — scale_fill_randmcnally","text":"Rand-McNally National Geographic Color Scales ggplot2","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_polimap.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Rand-McNally and National Geographic Color Scales for ggplot2 — scale_fill_randmcnally","text":"","code":"scale_fill_randmcnally(...) scale_color_randmcnally(...) scale_colour_randmcnally(...) scale_fill_natgeo(...) scale_color_natgeo(...) scale_colour_natgeo(...)"},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_polimap.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Rand-McNally and National Geographic Color Scales for ggplot2 — scale_fill_randmcnally","text":"... Arguments passed ggplot2::discrete_scale()","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_polimap.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Rand-McNally and National Geographic Color Scales for ggplot2 — scale_fill_randmcnally","text":"ggplot scale function","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_polimap.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Rand-McNally and National Geographic Color Scales for ggplot2 — scale_fill_randmcnally","text":"","code":"library(ggplot2) data(oregon) ggplot(oregon, aes(group = county)) + geom_district() + scale_fill_randmcnally() + theme_map() ggplot(oregon, aes(group = county)) + geom_district() + scale_fill_natgeo() + theme_map()"},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_wiki.html","id":null,"dir":"Reference","previous_headings":"","what":"Wikipedia Election Map scales for ggplot2 — scale_fill_wiki_rep","title":"Wikipedia Election Map scales for ggplot2 — scale_fill_wiki_rep","text":"Wikipedia Election Map scales ggplot2","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_wiki.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Wikipedia Election Map scales for ggplot2 — scale_fill_wiki_rep","text":"","code":"scale_fill_wiki_rep(...) scale_color_wiki_rep(...) scale_fill_wiki_dem(...) scale_color_wiki_dem(...) scale_fill_wiki_rep_pres(...) scale_color_wiki_rep_pres(...) scale_fill_wiki_dem_pres(...) scale_color_wiki_dem_pres(...)"},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_wiki.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Wikipedia Election Map scales for ggplot2 — scale_fill_wiki_rep","text":"... additional arguments ggplot::scale_* functions","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_wiki.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Wikipedia Election Map scales for ggplot2 — scale_fill_wiki_rep","text":"ggplot scale function","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_wiki.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Wikipedia Election Map scales for ggplot2 — scale_fill_wiki_rep","text":"","code":"scale_fill_wiki_rep() #> #> aesthetics: fill #> after.stat: FALSE #> axis_order: function #> break_info: function #> break_positions: function #> breaks: 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 #> call: call #> clone: function #> dimension: function #> expand: waiver #> get_breaks: function #> get_breaks_minor: function #> get_labels: function #> get_limits: function #> guide: colourbar #> is_discrete: function #> is_empty: function #> labels: waiver #> limits: 0.1 0.9 #> make_sec_title: function #> make_title: function #> map: function #> map_df: function #> n.breaks: NULL #> na.value: NA #> name: waiver #> nice.breaks: TRUE #> oob: function #> palette: function #> position: left #> range: environment #> rescale: function #> rescaler: function #> reset: function #> right: TRUE #> scale_name: wiki_rep #> show.limits: FALSE #> train: function #> train_df: function #> trans: trans #> transform: function #> transform_df: function #> super: scale_fill_wiki_rep() #> #> aesthetics: fill #> after.stat: FALSE #> axis_order: function #> break_info: function #> break_positions: function #> breaks: 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 #> call: call #> clone: function #> dimension: function #> expand: waiver #> get_breaks: function #> get_breaks_minor: function #> get_labels: function #> get_limits: function #> guide: colourbar #> is_discrete: function #> is_empty: function #> labels: waiver #> limits: 0.1 0.9 #> make_sec_title: function #> make_title: function #> map: function #> map_df: function #> n.breaks: NULL #> na.value: NA #> name: waiver #> nice.breaks: TRUE #> oob: function #> palette: function #> position: left #> range: environment #> rescale: function #> rescaler: function #> reset: function #> right: TRUE #> scale_name: wiki_rep #> show.limits: FALSE #> train: function #> train_df: function #> trans: trans #> transform: function #> transform_df: function #> super: scale_fill_wiki_dem() #> #> aesthetics: fill #> after.stat: FALSE #> axis_order: function #> break_info: function #> break_positions: function #> breaks: 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 #> call: call #> clone: function #> dimension: function #> expand: waiver #> get_breaks: function #> get_breaks_minor: function #> get_labels: function #> get_limits: function #> guide: colourbar #> is_discrete: function #> is_empty: function #> labels: waiver #> limits: 0.1 0.9 #> make_sec_title: function #> make_title: function #> map: function #> map_df: function #> n.breaks: NULL #> na.value: NA #> name: waiver #> nice.breaks: TRUE #> oob: function #> palette: function #> position: left #> range: environment #> rescale: function #> rescaler: function #> reset: function #> right: TRUE #> scale_name: wiki_dem #> show.limits: FALSE #> train: function #> train_df: function #> trans: trans #> transform: function #> transform_df: function #> super: scale_fill_wiki_dem() #> #> aesthetics: fill #> after.stat: FALSE #> axis_order: function #> break_info: function #> break_positions: function #> breaks: 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 #> call: call #> clone: function #> dimension: function #> expand: waiver #> get_breaks: function #> get_breaks_minor: function #> get_labels: function #> get_limits: function #> guide: colourbar #> is_discrete: function #> is_empty: function #> labels: waiver #> limits: 0.1 0.9 #> make_sec_title: function #> make_title: function #> map: function #> map_df: function #> n.breaks: NULL #> na.value: NA #> name: waiver #> nice.breaks: TRUE #> oob: function #> palette: function #> position: left #> range: environment #> rescale: function #> rescaler: function #> reset: function #> right: TRUE #> scale_name: wiki_dem #> show.limits: FALSE #> train: function #> train_df: function #> trans: trans #> transform: function #> transform_df: function #> super: scale_fill_wiki_rep_pres() #> #> aesthetics: fill #> after.stat: FALSE #> axis_order: function #> break_info: function #> break_positions: function #> breaks: 0 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 #> call: call #> clone: function #> dimension: function #> expand: waiver #> get_breaks: function #> get_breaks_minor: function #> get_labels: function #> get_limits: function #> guide: colourbar #> is_discrete: function #> is_empty: function #> labels: waiver #> limits: 0.2 0.9 #> make_sec_title: function #> make_title: function #> map: function #> map_df: function #> n.breaks: NULL #> na.value: NA #> name: waiver #> nice.breaks: TRUE #> oob: function #> palette: function #> position: left #> range: environment #> rescale: function #> rescaler: function #> reset: function #> right: TRUE #> scale_name: wiki_rep_pres #> show.limits: FALSE #> train: function #> train_df: function #> trans: trans #> transform: function #> transform_df: function #> super: scale_fill_wiki_rep_pres() #> #> aesthetics: fill #> after.stat: FALSE #> axis_order: function #> break_info: function #> break_positions: function #> breaks: 0 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 #> call: call #> clone: function #> dimension: function #> expand: waiver #> get_breaks: function #> get_breaks_minor: function #> get_labels: function #> get_limits: function #> guide: colourbar #> is_discrete: function #> is_empty: function #> labels: waiver #> limits: 0.2 0.9 #> make_sec_title: function #> make_title: function #> map: function #> map_df: function #> n.breaks: NULL #> na.value: NA #> name: waiver #> nice.breaks: TRUE #> oob: function #> palette: function #> position: left #> range: environment #> rescale: function #> rescaler: function #> reset: function #> right: TRUE #> scale_name: wiki_rep_pres #> show.limits: FALSE #> train: function #> train_df: function #> trans: trans #> transform: function #> transform_df: function #> super: scale_fill_wiki_dem_pres() #> #> aesthetics: fill #> after.stat: FALSE #> axis_order: function #> break_info: function #> break_positions: function #> breaks: 0 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 #> call: call #> clone: function #> dimension: function #> expand: waiver #> get_breaks: function #> get_breaks_minor: function #> get_labels: function #> get_limits: function #> guide: colourbar #> is_discrete: function #> is_empty: function #> labels: waiver #> limits: 0.2 0.9 #> make_sec_title: function #> make_title: function #> map: function #> map_df: function #> n.breaks: NULL #> na.value: NA #> name: waiver #> nice.breaks: TRUE #> oob: function #> palette: function #> position: left #> range: environment #> rescale: function #> rescaler: function #> reset: function #> right: TRUE #> scale_name: wiki_dem_pres #> show.limits: FALSE #> train: function #> train_df: function #> trans: trans #> transform: function #> transform_df: function #> super: scale_fill_wiki_dem_pres() #> #> aesthetics: fill #> after.stat: FALSE #> axis_order: function #> break_info: function #> break_positions: function #> breaks: 0 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 #> call: call #> clone: function #> dimension: function #> expand: waiver #> get_breaks: function #> get_breaks_minor: function #> get_labels: function #> get_limits: function #> guide: colourbar #> is_discrete: function #> is_empty: function #> labels: waiver #> limits: 0.2 0.9 #> make_sec_title: function #> make_title: function #> map: function #> map_df: function #> n.breaks: NULL #> na.value: NA #> name: waiver #> nice.breaks: TRUE #> oob: function #> palette: function #> position: left #> range: environment #> rescale: function #> rescaler: function #> reset: function #> right: TRUE #> scale_name: wiki_dem_pres #> show.limits: FALSE #> train: function #> train_df: function #> trans: trans #> transform: function #> transform_df: function #> super: "},{"path":"https://alarm-redist.github.io/ggredist/reference/theme_map.html","id":null,"dir":"Reference","previous_headings":"","what":"Map Theme — theme_map","title":"Map Theme — theme_map","text":"Theme maps uses 'Times' family transparent background.","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/theme_map.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Map Theme — theme_map","text":"","code":"theme_map(...)"},{"path":"https://alarm-redist.github.io/ggredist/reference/theme_map.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Map Theme — theme_map","text":"... additional parameters","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/theme_map.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Map Theme — theme_map","text":"ggplot2 theme","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/theme_map.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Map Theme — theme_map","text":"","code":"library(ggplot2) data(oregon) ggplot(oregon, aes(group = county)) + geom_district() + scale_fill_penn82() + theme_map()"},{"path":"https://alarm-redist.github.io/ggredist/news/index.html","id":"ggredist-002","dir":"Changelog","previous_headings":"","what":"ggredist 0.0.2","title":"ggredist 0.0.2","text":"CRAN release: 2022-11-23 Adds colors scales match Wikipedia’s typical election mapping colors.","code":""},{"path":"https://alarm-redist.github.io/ggredist/news/index.html","id":"ggredist-001","dir":"Changelog","previous_headings":"","what":"ggredist 0.0.1","title":"ggredist 0.0.1","text":"Added NEWS.md file track changes package. Adds new geom: geom_district(), geom_district_label(), geom_district_text(), geom_places() Adds scales discrete continuous partisan maps Adds theme_map()","code":""}]
+[{"path":"https://alarm-redist.github.io/ggredist/LICENSE.html","id":null,"dir":"","previous_headings":"","what":"MIT License","title":"MIT License","text":"Copyright (c) 2022 Cory McCartan Christopher T. Kenny Permission hereby granted, free charge, person obtaining copy software associated documentation files (“Software”), deal Software without restriction, including without limitation rights use, copy, modify, merge, publish, distribute, sublicense, /sell copies Software, permit persons Software furnished , subject following conditions: copyright notice permission notice shall included copies substantial portions Software. SOFTWARE PROVIDED “”, WITHOUT WARRANTY KIND, EXPRESS IMPLIED, INCLUDING LIMITED WARRANTIES MERCHANTABILITY, FITNESS PARTICULAR PURPOSE NONINFRINGEMENT. EVENT SHALL AUTHORS COPYRIGHT HOLDERS LIABLE CLAIM, DAMAGES LIABILITY, WHETHER ACTION CONTRACT, TORT OTHERWISE, ARISING , CONNECTION SOFTWARE USE DEALINGS SOFTWARE.","code":""},{"path":"https://alarm-redist.github.io/ggredist/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Cory McCartan. Author. Christopher T. Kenny. Author, maintainer.","code":""},{"path":"https://alarm-redist.github.io/ggredist/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"McCartan C, Kenny C (2023). ggredist: Scales, Geometries, Extensions 'ggplot2' Election Mapping. https://github.com/alarm-redist/ggredist, https://alarm-redist.org/ggredist/.","code":"@Manual{, title = {ggredist: Scales, Geometries, and Extensions of 'ggplot2' for Election Mapping}, author = {Cory McCartan and Christopher T. Kenny}, year = {2023}, note = {https://github.com/alarm-redist/ggredist, https://alarm-redist.org/ggredist/}, }"},{"path":"https://alarm-redist.github.io/ggredist/index.html","id":"ggredist-","dir":"","previous_headings":"","what":"Scales, Geometries, and Extensions of ggplot2 for Election Mapping","title":"Scales, Geometries, and Extensions of ggplot2 for Election Mapping","text":"ggredist provides ggplot2 extensions political mapmaking, including new geometries, easy label generation placement, automatic map coloring, map scales, palettes, themes. ’s example can package. See reference.","code":"library(ggredist) library(ggplot2) data(oregon) ggplot(oregon, aes(group=cd_2020)) + # 'ndv' and 'nrv' contain D and R vote counts geom_district(aes(fill=ndv, denom=ndv+nrv), linewidth=0.9) + geom_district_text() + # can then highlight towns and cities geom_places(state = 'OR') + # we can overlay county boundaries and labels geom_district(aes(group=county), linewidth=0.2, linetype=\"dashed\", fill=NA) + geom_district_text(aes(group=county, label=toupper(county)), size=2.2, check_overlap=TRUE) + scale_fill_party_b(limits=c(0.4, 0.6)) + theme_map()"},{"path":"https://alarm-redist.github.io/ggredist/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Scales, Geometries, and Extensions of ggplot2 for Election Mapping","text":"can install development version ggredist GitHub :","code":"# install.packages(\"remotes\") remotes::install_github(\"alarm-redist/ggredist\")"},{"path":"https://alarm-redist.github.io/ggredist/reference/StatCityRoad.html","id":null,"dir":"Reference","previous_headings":"","what":"Annotate a Map with Roads and Cities — stat_cities","title":"Annotate a Map with Roads and Cities — stat_cities","text":"Clips interstates cities datasets bounding box map plots .","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/StatCityRoad.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Annotate a Map with Roads and Cities — stat_cities","text":"","code":"stat_cities( mapping = NULL, data = NULL, geom = ggplot2::GeomSf, position = \"identity\", na.rm = FALSE, adjust = 1, min_pop = 1e+05, show.legend = NA, inherit.aes = TRUE, ... ) stat_interstates( mapping = NULL, data = NULL, geom = ggplot2::GeomSf, position = \"identity\", na.rm = FALSE, show.legend = NA, inherit.aes = TRUE, ... )"},{"path":"https://alarm-redist.github.io/ggredist/reference/StatCityRoad.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Annotate a Map with Roads and Cities — stat_cities","text":"mapping Set aesthetic mappings created aes() data data displayed layer geom geometric object use display data position Position adjustment na.rm TRUE, silently remove missing values calculations adjust multiplicative scaling factor default label sizes min_pop minimum population city must 2006 shown. show.legend layer included legends? inherit.aes FALSE, overrides default aesthetics, rather combining . ... Passed onto underlying geoms.","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/StatCityRoad.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Annotate a Map with Roads and Cities — stat_cities","text":"ggproto object","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/StatCityRoad.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Annotate a Map with Roads and Cities — stat_cities","text":"","code":"library(ggplot2) data(oregon) ggplot(oregon, aes(group=cd_2020)) + geom_district() + stat_interstates(size=1.4, color=\"#0044aa55\") + stat_cities(geom=\"text\", min_pop=130e3, fontface=\"bold\", adjust=0.8) + scale_fill_penn82() + theme_map()"},{"path":"https://alarm-redist.github.io/ggredist/reference/StatDistrict.html","id":null,"dir":"Reference","previous_headings":"","what":"Aggregate and Plot Map Regions — geom_district","title":"Aggregate and Plot Map Regions — geom_district","text":"Aggregates shapefile according group aesthetic. just group provided, default map regions colored group adjacent regions share color (set fill force particular color, NA fill). fill provided, values fill summed within groups defined group. denom provided, values denom summed within groups defined group, used divide summed values fill. example, fill denom can used together plot partisan demographic characteristics congressional districts (see examples).","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/StatDistrict.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Aggregate and Plot Map Regions — geom_district","text":"","code":"geom_district( mapping = NULL, data = NULL, position = \"identity\", na.rm = FALSE, is_coverage = FALSE, min_col = FALSE, buffer = 0, show.legend = NA, inherit.aes = TRUE, ... ) stat_district( mapping = NULL, data = NULL, geom = GeomDistrict, position = \"identity\", na.rm = FALSE, is_coverage = FALSE, min_col = FALSE, buffer = 0, show.legend = NA, inherit.aes = TRUE, ... )"},{"path":"https://alarm-redist.github.io/ggredist/reference/StatDistrict.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Aggregate and Plot Map Regions — geom_district","text":"mapping Set aesthetic mappings created aes() data data displayed layer position Position adjustment na.rm TRUE, silently remove missing values calculations is_coverage sf::st_union(). May speed plotting large shapefiles geos installed shapefile projected. min_col TRUE, try minimize number colors used. May necessary short palettes. buffer Optionally buffer merged geometries. Negative values shrink geometries towards center can used \"glowing boundary\" effect (see examples). show.legend layer included legends? inherit.aes FALSE, overrides default aesthetics, rather combining . ... Passed onto underlying geoms. geom geometric object use display data","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/StatDistrict.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Aggregate and Plot Map Regions — geom_district","text":"ggproto object","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/StatDistrict.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Aggregate and Plot Map Regions — geom_district","text":"","code":"library(ggplot2) data(oregon) ggplot(oregon, aes(group=county)) + geom_district() + scale_fill_penn82() + theme_map() ggplot(oregon, aes(group=county, fill=pop)) + geom_district() + theme_map() ggplot(oregon, aes(group=cd_2020, fill=ndv, denom=ndv+nrv)) + geom_district() + scale_fill_party_c(limits=c(0.4, 0.6)) + theme_map() ggplot(oregon, aes(group=county)) + geom_district() + geom_district(buffer=-5000, fill=\"#ffffffcc\", color=NA) + scale_fill_natgeo() + theme_map()"},{"path":"https://alarm-redist.github.io/ggredist/reference/StatDistrictCoordinates.html","id":null,"dir":"Reference","previous_headings":"","what":"Label Map Regions — geom_district_text","title":"Label Map Regions — geom_district_text","text":"Aggregates shapefile according group aesthetic positions labels region defined group. default, labels sized rough proportion available area.","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/StatDistrictCoordinates.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Label Map Regions — geom_district_text","text":"","code":"geom_district_text( mapping = NULL, data = NULL, position = \"identity\", na.rm = FALSE, adjust = 1, check_overlap = FALSE, parse = FALSE, show.legend = NA, inherit.aes = TRUE, ... ) geom_district_label( mapping = NULL, data = NULL, position = \"identity\", na.rm = FALSE, label.padding = ggplot2::unit(0.25, \"lines\"), label.r = ggplot2::unit(0.15, \"lines\"), label.size = 0.25, check_overlap = FALSE, parse = FALSE, adjust = 1, show.legend = NA, inherit.aes = TRUE, ... ) stat_district_coordinates( mapping = NULL, data = NULL, geom = \"text\", position = \"identity\", na.rm = FALSE, adjust = 1, show.legend = NA, inherit.aes = TRUE, ... )"},{"path":"https://alarm-redist.github.io/ggredist/reference/StatDistrictCoordinates.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Label Map Regions — geom_district_text","text":"mapping Set aesthetic mappings created aes() data data displayed layer position Position adjustment na.rm TRUE, silently remove missing values calculations adjust multiplicative scaling factor default label sizes check_overlap TRUE, text overlaps previous text layer plotted. parse TRUE, labels parsed expressions displayed described ?plotmath. show.legend layer included legends? inherit.aes FALSE, overrides default aesthetics, rather combining . ... Passed onto underlying geoms. label.padding Padding around label label.r Radius rounded corners label.size Size label border (mm) geom geometric object use display data","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/StatDistrictCoordinates.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Label Map Regions — geom_district_text","text":"ggproto object","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/StatDistrictCoordinates.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Label Map Regions — geom_district_text","text":"","code":"library(ggplot2) data(oregon) ggplot(oregon, aes(group=county)) + geom_district() + geom_district_text() + scale_fill_randmcnally() + theme_map() ggplot(oregon, aes(group=cd_2020)) + geom_district(lwd=0.9, color=\"#442222\") + geom_district(aes(group=county), lwd=0.4, lty=\"dashed\", fill=NA) + geom_district_text(aes(group=county, label=toupper(county)), size=2.2, check_overlap=TRUE) + geom_district_text(adjust=2) + scale_fill_penn82() + theme_map()"},{"path":"https://alarm-redist.github.io/ggredist/reference/StatPlaces.html","id":null,"dir":"Reference","previous_headings":"","what":"Emphasize Populated Regions of a Map with greyed out Places — geom_places","title":"Emphasize Populated Regions of a Map with greyed out Places — geom_places","text":"Identifies relevant census places plots .","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/StatPlaces.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Emphasize Populated Regions of a Map with greyed out Places — geom_places","text":"","code":"geom_places( mapping = NULL, data = NULL, position = \"identity\", na.rm = FALSE, state = NULL, show.legend = NA, inherit.aes = TRUE, ... ) stat_places( mapping = NULL, data = NULL, geom = ggplot2::GeomSf, position = \"identity\", na.rm = FALSE, state = NULL, show.legend = NA, inherit.aes = TRUE, ... )"},{"path":"https://alarm-redist.github.io/ggredist/reference/StatPlaces.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Emphasize Populated Regions of a Map with greyed out Places — geom_places","text":"mapping Set aesthetic mappings created aes() data data displayed layer position Position adjustment na.rm TRUE, silently remove missing values calculations state state use. Guesses based overlap provided. show.legend layer included legends? inherit.aes FALSE, overrides default aesthetics, rather combining . ... Passed onto underlying geoms. geom geometric object use display data","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/StatPlaces.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Emphasize Populated Regions of a Map with greyed out Places — geom_places","text":"ggproto object","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/StatPlaces.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Emphasize Populated Regions of a Map with greyed out Places — geom_places","text":"","code":"library(ggplot2) data(oregon) ggplot(oregon, aes(group = cd_2020)) + geom_district() + theme_map() ggplot(oregon, aes(group = cd_2020)) + geom_district() + theme_map()"},{"path":"https://alarm-redist.github.io/ggredist/reference/cities.html","id":null,"dir":"Reference","previous_headings":"","what":"U.S. Cities — cities","title":"U.S. Cities — cities","text":"data contains location, name, 2020 population U.S. cities large towns.","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/cities.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"U.S. Cities — cities","text":"","code":"data(\"cities\")"},{"path":"https://alarm-redist.github.io/ggredist/reference/cities.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"U.S. Cities — cities","text":"sf object name City name. state City state. pop_2020 City population 2020 GEOID Census GEOID corresponding Census Designated Place. geometry sf geometry column containing geographic information.","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/cities.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"U.S. Cities — cities","text":"","code":"data(cities)"},{"path":"https://alarm-redist.github.io/ggredist/reference/ggredist.html","id":null,"dir":"Reference","previous_headings":"","what":"Redistricting Color Palettes — ggredist","title":"Redistricting Color Palettes — ggredist","text":"Included palettes: partisan, perceptually uniform red-white-blue scale dra, Dave's Redistricting App classic color palette penn82, historic categorical color palette 1982 published Pennsylvania congressional district map randmcnally natgeo, colors taken Rand-McNally National Geographic political maps coast larch, inspired natural scenery wiki_dem_pres: Wikipedia Presidential Democratic palette wiki_rep_pres: Wikipedia Presidential Republican palette wiki_dem: Wikipedia downballot Democratic palette wiki_rep: Wikipedia downballot Republican palette wiki_proposal: Wikipedia proposal support palette","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/ggredist.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Redistricting Color Palettes — ggredist","text":"","code":"ggredist"},{"path":"https://alarm-redist.github.io/ggredist/reference/ggredist.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Redistricting Color Palettes — ggredist","text":"list character vectors type palette (supports plot() generic visualization)","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/ggredist.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Redistricting Color Palettes — ggredist","text":"details Wikipedia-based colors, see https://en.wikipedia.org/wiki/Wikipedia:WikiProject_Elections_and_Referendums/USA_legend_colors.","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/ggredist.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Redistricting Color Palettes — ggredist","text":"","code":"plot(ggredist$partisan) plot(ggredist$dra) plot(ggredist$penn82) plot(ggredist$randmcnally) plot(ggredist$natgeo) plot(ggredist$coast) plot(ggredist$larch)"},{"path":"https://alarm-redist.github.io/ggredist/reference/interstates.html","id":null,"dir":"Reference","previous_headings":"","what":"Insterstate Shapefile — interstates","title":"Insterstate Shapefile — interstates","text":"data contains geometry information U.S. Interstate Highway System. processed U.S. Census Bureau TIGER/Line Shapefile system.","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/interstates.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Insterstate Shapefile — interstates","text":"","code":"data(\"interstates\")"},{"path":"https://alarm-redist.github.io/ggredist/reference/interstates.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Insterstate Shapefile — interstates","text":"sf object name Census Bureau name interstate geometry sf geometry column containing geographic information.","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/interstates.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Insterstate Shapefile — interstates","text":"","code":"data(interstates)"},{"path":"https://alarm-redist.github.io/ggredist/reference/label_party.html","id":null,"dir":"Reference","previous_headings":"","what":"Label Partisan Vote Shares — label_party_margin","title":"Label Partisan Vote Shares — label_party_margin","text":"example, 45% Democratic vote share becomes \"R+10\" \"55% R\".","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/label_party.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Label Partisan Vote Shares — label_party_margin","text":"","code":"label_party_margin(midpoint = 0.5, reverse = FALSE, accuracy = 1) label_party_pct(midpoint = 0.5, reverse = FALSE, accuracy = 1)"},{"path":"https://alarm-redist.github.io/ggredist/reference/label_party.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Label Partisan Vote Shares — label_party_margin","text":"midpoint Either 0.5, default, 0. label_party_margin(), zero, scale doubled (0.05 becomes \"D+5\" midpoint=0, 0.55 becomes \"D+10\" `midpoint=0.5) reverse TRUE, reverse \"D\" \"R\". accuracy scales::number_format","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/label_party.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Label Partisan Vote Shares — label_party_margin","text":"labeling function","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/label_party.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Label Partisan Vote Shares — label_party_margin","text":"","code":"labeler = label_party_margin(accuracy=0.1) labeler(c(0.3, 0.5, 0.543)) #> [1] \"R+40.0\" \"Even\" \"D+8.6\" labeler = label_party_margin(reverse=TRUE) labeler(c(0.3, 0.5, 0.543)) #> [1] \"D+40\" \"Even\" \"R+9\""},{"path":"https://alarm-redist.github.io/ggredist/reference/map_coloring.html","id":null,"dir":"Reference","previous_headings":"","what":"Produce a Map Coloring — map_coloring","title":"Produce a Map Coloring — map_coloring","text":"Finds colors every element shapefile adjacent elements color.","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/map_coloring.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Produce a Map Coloring — map_coloring","text":"","code":"map_coloring(shp, min_coloring = TRUE)"},{"path":"https://alarm-redist.github.io/ggredist/reference/map_coloring.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Produce a Map Coloring — map_coloring","text":"shp sf object min_coloring TRUE, try minimize number colors used","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/map_coloring.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Produce a Map Coloring — map_coloring","text":"integer vector length shp, corresponding coloring.","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/map_coloring.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Produce a Map Coloring — map_coloring","text":"","code":"data(oregon) or_short = oregon[30:50, ] map_coloring(or_short) #> [1] 1 3 1 2 1 4 3 2 1 4 3 2 3 2 1 3 3 1 4 2 4 library(ggplot2) ggplot(or_short, aes(fill = map_coloring(or_short))) + geom_sf() + theme_map()"},{"path":"https://alarm-redist.github.io/ggredist/reference/oregon.html","id":null,"dir":"Reference","previous_headings":"","what":"Oregon Redistricting File — oregon","title":"Oregon Redistricting File — oregon","text":"data contains geographic, demographic, political information 1,071 census tracts state Oregon.","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/oregon.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Oregon Redistricting File — oregon","text":"","code":"data(\"oregon\")"},{"path":"https://alarm-redist.github.io/ggredist/reference/oregon.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Oregon Redistricting File — oregon","text":"sf object county county tract belongs . cd_2020 2210 congressional district assignment tract. pop total population tract, according 2020 Census. pop_white non-Hispanic white population precinct. ndv Average number votes Democratic candidates recent statewide elections. nrv Average number votes Republican candidates recent statewide elections. geometry sf geometry column containing geographic information.","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/oregon.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Oregon Redistricting File — oregon","text":"","code":"data(oregon) oregon[, 1:6] #> Simple feature collection with 1071 features and 6 fields #> Geometry type: MULTIPOLYGON #> Dimension: XY #> Bounding box: xmin: 2163029 ymin: -185907.3 xmax: 2814746 ymax: 293445.7 #> Projected CRS: NAD83(HARN) / Oregon North #> # A tibble: 1,071 × 7 #> county cd_2020 pop pop_white ndv nrv geometry #> #> 1 Baker 2 2844 2552 369. 1312. (((2705037 125011.4, 2710726 1212… #> 2 Baker 2 3191 2738 498. 1251. (((2711347 127396.3, 2711327 1265… #> 3 Baker 2 2745 2390 392. 1247. (((2760731 96173.67, 2759438 8633… #> 4 Baker 2 3088 2758 148. 402. (((2711327 126595.8, 2711347 1273… #> 5 Baker 2 2749 2380 464. 1127 (((2709192 128933.2, 2698934 1477… #> 6 Baker 2 2051 1846 336. 932. (((2714628 150906.5, 2731447 1515… #> 7 Benton 4 4344 3161 1436. 458 (((2279770 100406.1, 2279322 1004… #> 8 Benton 4 3409 2308 1188. 394 (((2280644 102610.9, 2280706 1026… #> 9 Benton 4 5256 4233 2049. 908 (((2274712 99335.66, 2274240 1013… #> 10 Benton 4 2968 2340 1709. 373. (((2277555 106896, 2279606 105983… #> # ℹ 1,061 more rows"},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_538.html","id":null,"dir":"Reference","previous_headings":"","what":"FiveThirtyEight scales for ggplot2 — scale_fill_538","title":"FiveThirtyEight scales for ggplot2 — scale_fill_538","text":"FiveThirtyEight scales ggplot2","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_538.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"FiveThirtyEight scales for ggplot2 — scale_fill_538","text":"","code":"scale_fill_538(...) scale_color_538(...)"},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_538.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"FiveThirtyEight scales for ggplot2 — scale_fill_538","text":"... additional arguments ggplot::scale_* functions","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_538.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"FiveThirtyEight scales for ggplot2 — scale_fill_538","text":"ggplot scale function","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_538.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"FiveThirtyEight scales for ggplot2 — scale_fill_538","text":"","code":"scale_fill_538() #> #> aesthetics: fill #> after.stat: FALSE #> axis_order: function #> break_info: function #> break_positions: function #> breaks: 0 0.35 0.45 0.55 0.65 1 #> call: call #> clone: function #> dimension: function #> expand: waiver #> get_breaks: function #> get_breaks_minor: function #> get_labels: function #> get_limits: function #> guide: colourbar #> is_discrete: function #> is_empty: function #> labels: waiver #> limits: 0.25 0.75 #> make_sec_title: function #> make_title: function #> map: function #> map_df: function #> n.breaks: NULL #> na.value: NA #> name: waiver #> nice.breaks: TRUE #> oob: function #> palette: function #> position: left #> range: environment #> rescale: function #> rescaler: function #> reset: function #> right: TRUE #> scale_name: 538 #> show.limits: FALSE #> train: function #> train_df: function #> trans: trans #> transform: function #> transform_df: function #> super: scale_color_538() #> #> aesthetics: colour #> after.stat: FALSE #> axis_order: function #> break_info: function #> break_positions: function #> breaks: 0 0.35 0.45 0.55 0.65 1 #> call: call #> clone: function #> dimension: function #> expand: waiver #> get_breaks: function #> get_breaks_minor: function #> get_labels: function #> get_limits: function #> guide: colourbar #> is_discrete: function #> is_empty: function #> labels: waiver #> limits: 0.25 0.75 #> make_sec_title: function #> make_title: function #> map: function #> map_df: function #> n.breaks: NULL #> na.value: NA #> name: waiver #> nice.breaks: TRUE #> oob: function #> palette: function #> position: left #> range: environment #> rescale: function #> rescaler: function #> reset: function #> right: TRUE #> scale_name: 538 #> show.limits: FALSE #> train: function #> train_df: function #> trans: trans #> transform: function #> transform_df: function #> super: "},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_dra.html","id":null,"dir":"Reference","previous_headings":"","what":"Dave's Redistricting App classic scale for ggplot2 — scale_fill_dra","title":"Dave's Redistricting App classic scale for ggplot2 — scale_fill_dra","text":"Dave's Redistricting App classic scale ggplot2","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_dra.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Dave's Redistricting App classic scale for ggplot2 — scale_fill_dra","text":"","code":"scale_fill_dra(...) scale_color_dra(...) scale_colour_dra(...)"},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_dra.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Dave's Redistricting App classic scale for ggplot2 — scale_fill_dra","text":"... Arguments passed ggplot2::discrete_scale()","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_dra.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Dave's Redistricting App classic scale for ggplot2 — scale_fill_dra","text":"ggplot scale function","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_dra.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Dave's Redistricting App classic scale for ggplot2 — scale_fill_dra","text":"","code":"library(ggplot2) data(oregon) ggplot(oregon, aes(group = county, fill=county)) + geom_district() + scale_fill_dra() + theme_map()"},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_nature.html","id":null,"dir":"Reference","previous_headings":"","what":"Nature-derived Color Scales for ggplot2 — scale_fill_coast","title":"Nature-derived Color Scales for ggplot2 — scale_fill_coast","text":"Nature-derived Color Scales ggplot2","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_nature.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Nature-derived Color Scales for ggplot2 — scale_fill_coast","text":"","code":"scale_fill_coast(...) scale_color_coast(...) scale_colour_coast(...) scale_fill_larch(...) scale_color_larch(...) scale_colour_larch(...)"},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_nature.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Nature-derived Color Scales for ggplot2 — scale_fill_coast","text":"... Arguments passed ggplot2::discrete_scale()","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_nature.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Nature-derived Color Scales for ggplot2 — scale_fill_coast","text":"ggplot scale function","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_nature.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Nature-derived Color Scales for ggplot2 — scale_fill_coast","text":"","code":"library(ggplot2) data(oregon) ggplot(oregon, aes(group = county)) + geom_district() + scale_fill_coast() + theme_map() ggplot(oregon, aes(group = county)) + geom_district() + scale_fill_larch() + theme_map()"},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_party.html","id":null,"dir":"Reference","previous_headings":"","what":"Partisan scales for ggplot2 — scale_party","title":"Partisan scales for ggplot2 — scale_party","text":"Partisan scales ggplot2","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_party.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Partisan scales for ggplot2 — scale_party","text":"","code":"scale_fill_party_c( name = \"Vote share\", midpoint = 0.5, limits = 0:1, labels = label_party_pct(), oob = scales::squish, reverse = FALSE, ... ) scale_color_party_c( name = \"Vote share\", midpoint = 0.5, limits = 0:1, labels = label_party_pct(), oob = scales::squish, reverse = FALSE, ... ) scale_fill_party_d(labels = c(\"Rep.\", \"Dem.\"), reverse = FALSE, ...) scale_color_party_d(labels = c(\"Rep.\", \"Dem.\"), reverse = FALSE, ...) scale_fill_party_b( name = \"Vote share\", midpoint = 0.5, limits = 0:1, labels = label_party_pct(), oob = scales::squish, reverse = FALSE, nice.breaks = FALSE, ... ) scale_color_party_b( name = \"Vote share\", midpoint = 0.5, limits = 0:1, labels = label_party_pct(), oob = scales::squish, reverse = FALSE, nice.breaks = FALSE, ... ) scale_colour_party_d(labels = c(\"Rep.\", \"Dem.\"), reverse = FALSE, ...) scale_colour_party_c( name = \"Vote share\", midpoint = 0.5, limits = 0:1, labels = label_party_pct(), oob = scales::squish, reverse = FALSE, ... ) scale_colour_party_b( name = \"Vote share\", midpoint = 0.5, limits = 0:1, labels = label_party_pct(), oob = scales::squish, reverse = FALSE, nice.breaks = FALSE, ... )"},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_party.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Partisan scales for ggplot2 — scale_party","text":"name Name scale. Default \"Vote share\". midpoint Scale midpoint value. Default 0.5. limits Lower upper limits scale. Default 0:1. labels Function adjust scale labels. Default scales::percent. oob Function deal bounds. Default scales::squish(). reverse Whether reverse red blue. ... Additional arguments ggplot::scale_* functions nice.breaks TRUE, attempt place breaks nice values instead exactly evenly spaced limits.","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_party.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Partisan scales for ggplot2 — scale_party","text":"ggplot scale function","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_party.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Partisan scales for ggplot2 — scale_party","text":"","code":"library(ggplot2) data(oregon) ggplot(oregon, aes(fill = ndv / (ndv + nrv))) + geom_sf(size = 0) + scale_fill_party_c(limits=c(0.3, 0.7)) + theme_map() ggplot(oregon, aes(fill = ndv / (ndv + nrv))) + geom_sf(size = 0) + scale_fill_party_b() + theme_map()"},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_penn82.html","id":null,"dir":"Reference","previous_headings":"","what":"Historical Pennsylvania Color Scale for ggplot2 — scale_fill_penn82","title":"Historical Pennsylvania Color Scale for ggplot2 — scale_fill_penn82","text":"Historical Pennsylvania Color Scale ggplot2","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_penn82.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Historical Pennsylvania Color Scale for ggplot2 — scale_fill_penn82","text":"","code":"scale_fill_penn82(...) scale_color_penn82(...) scale_colour_penn82(...)"},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_penn82.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Historical Pennsylvania Color Scale for ggplot2 — scale_fill_penn82","text":"... Arguments passed ggplot2::discrete_scale()","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_penn82.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Historical Pennsylvania Color Scale for ggplot2 — scale_fill_penn82","text":"ggplot scale function","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_penn82.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Historical Pennsylvania Color Scale for ggplot2 — scale_fill_penn82","text":"","code":"library(ggplot2) data(oregon) ggplot(oregon, aes(group = county)) + geom_district() + scale_fill_penn82() + theme_map()"},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_polimap.html","id":null,"dir":"Reference","previous_headings":"","what":"Rand-McNally and National Geographic Color Scales for ggplot2 — scale_fill_randmcnally","title":"Rand-McNally and National Geographic Color Scales for ggplot2 — scale_fill_randmcnally","text":"Rand-McNally National Geographic Color Scales ggplot2","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_polimap.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Rand-McNally and National Geographic Color Scales for ggplot2 — scale_fill_randmcnally","text":"","code":"scale_fill_randmcnally(...) scale_color_randmcnally(...) scale_colour_randmcnally(...) scale_fill_natgeo(...) scale_color_natgeo(...) scale_colour_natgeo(...)"},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_polimap.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Rand-McNally and National Geographic Color Scales for ggplot2 — scale_fill_randmcnally","text":"... Arguments passed ggplot2::discrete_scale()","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_polimap.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Rand-McNally and National Geographic Color Scales for ggplot2 — scale_fill_randmcnally","text":"ggplot scale function","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_polimap.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Rand-McNally and National Geographic Color Scales for ggplot2 — scale_fill_randmcnally","text":"","code":"library(ggplot2) data(oregon) ggplot(oregon, aes(group = county)) + geom_district() + scale_fill_randmcnally() + theme_map() ggplot(oregon, aes(group = county)) + geom_district() + scale_fill_natgeo() + theme_map()"},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_wiki.html","id":null,"dir":"Reference","previous_headings":"","what":"Wikipedia Style Election Map scales for ggplot2 — scale_fill_wiki_rep","title":"Wikipedia Style Election Map scales for ggplot2 — scale_fill_wiki_rep","text":"Wikipedia Style Election Map scales ggplot2","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_wiki.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Wikipedia Style Election Map scales for ggplot2 — scale_fill_wiki_rep","text":"","code":"scale_fill_wiki_rep(...) scale_color_wiki_rep(...) scale_fill_wiki_dem(...) scale_color_wiki_dem(...) scale_fill_wiki_rep_pres(...) scale_color_wiki_rep_pres(...) scale_fill_wiki_dem_pres(...) scale_color_wiki_dem_pres(...)"},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_wiki.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Wikipedia Style Election Map scales for ggplot2 — scale_fill_wiki_rep","text":"... additional arguments ggplot::scale_* functions","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_wiki.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Wikipedia Style Election Map scales for ggplot2 — scale_fill_wiki_rep","text":"ggplot scale function","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/scale_wiki.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Wikipedia Style Election Map scales for ggplot2 — scale_fill_wiki_rep","text":"","code":"scale_fill_wiki_rep() #> #> aesthetics: fill #> after.stat: FALSE #> axis_order: function #> break_info: function #> break_positions: function #> breaks: 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 #> call: call #> clone: function #> dimension: function #> expand: waiver #> get_breaks: function #> get_breaks_minor: function #> get_labels: function #> get_limits: function #> guide: colourbar #> is_discrete: function #> is_empty: function #> labels: waiver #> limits: 0.1 0.9 #> make_sec_title: function #> make_title: function #> map: function #> map_df: function #> n.breaks: NULL #> na.value: NA #> name: waiver #> nice.breaks: TRUE #> oob: function #> palette: function #> position: left #> range: environment #> rescale: function #> rescaler: function #> reset: function #> right: TRUE #> scale_name: wiki_rep #> show.limits: FALSE #> train: function #> train_df: function #> trans: trans #> transform: function #> transform_df: function #> super: scale_fill_wiki_rep() #> #> aesthetics: fill #> after.stat: FALSE #> axis_order: function #> break_info: function #> break_positions: function #> breaks: 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 #> call: call #> clone: function #> dimension: function #> expand: waiver #> get_breaks: function #> get_breaks_minor: function #> get_labels: function #> get_limits: function #> guide: colourbar #> is_discrete: function #> is_empty: function #> labels: waiver #> limits: 0.1 0.9 #> make_sec_title: function #> make_title: function #> map: function #> map_df: function #> n.breaks: NULL #> na.value: NA #> name: waiver #> nice.breaks: TRUE #> oob: function #> palette: function #> position: left #> range: environment #> rescale: function #> rescaler: function #> reset: function #> right: TRUE #> scale_name: wiki_rep #> show.limits: FALSE #> train: function #> train_df: function #> trans: trans #> transform: function #> transform_df: function #> super: scale_fill_wiki_dem() #> #> aesthetics: fill #> after.stat: FALSE #> axis_order: function #> break_info: function #> break_positions: function #> breaks: 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 #> call: call #> clone: function #> dimension: function #> expand: waiver #> get_breaks: function #> get_breaks_minor: function #> get_labels: function #> get_limits: function #> guide: colourbar #> is_discrete: function #> is_empty: function #> labels: waiver #> limits: 0.1 0.9 #> make_sec_title: function #> make_title: function #> map: function #> map_df: function #> n.breaks: NULL #> na.value: NA #> name: waiver #> nice.breaks: TRUE #> oob: function #> palette: function #> position: left #> range: environment #> rescale: function #> rescaler: function #> reset: function #> right: TRUE #> scale_name: wiki_dem #> show.limits: FALSE #> train: function #> train_df: function #> trans: trans #> transform: function #> transform_df: function #> super: scale_fill_wiki_dem() #> #> aesthetics: fill #> after.stat: FALSE #> axis_order: function #> break_info: function #> break_positions: function #> breaks: 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 #> call: call #> clone: function #> dimension: function #> expand: waiver #> get_breaks: function #> get_breaks_minor: function #> get_labels: function #> get_limits: function #> guide: colourbar #> is_discrete: function #> is_empty: function #> labels: waiver #> limits: 0.1 0.9 #> make_sec_title: function #> make_title: function #> map: function #> map_df: function #> n.breaks: NULL #> na.value: NA #> name: waiver #> nice.breaks: TRUE #> oob: function #> palette: function #> position: left #> range: environment #> rescale: function #> rescaler: function #> reset: function #> right: TRUE #> scale_name: wiki_dem #> show.limits: FALSE #> train: function #> train_df: function #> trans: trans #> transform: function #> transform_df: function #> super: scale_fill_wiki_rep_pres() #> #> aesthetics: fill #> after.stat: FALSE #> axis_order: function #> break_info: function #> break_positions: function #> breaks: 0 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 #> call: call #> clone: function #> dimension: function #> expand: waiver #> get_breaks: function #> get_breaks_minor: function #> get_labels: function #> get_limits: function #> guide: colourbar #> is_discrete: function #> is_empty: function #> labels: waiver #> limits: 0.2 0.9 #> make_sec_title: function #> make_title: function #> map: function #> map_df: function #> n.breaks: NULL #> na.value: NA #> name: waiver #> nice.breaks: TRUE #> oob: function #> palette: function #> position: left #> range: environment #> rescale: function #> rescaler: function #> reset: function #> right: TRUE #> scale_name: wiki_rep_pres #> show.limits: FALSE #> train: function #> train_df: function #> trans: trans #> transform: function #> transform_df: function #> super: scale_fill_wiki_rep_pres() #> #> aesthetics: fill #> after.stat: FALSE #> axis_order: function #> break_info: function #> break_positions: function #> breaks: 0 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 #> call: call #> clone: function #> dimension: function #> expand: waiver #> get_breaks: function #> get_breaks_minor: function #> get_labels: function #> get_limits: function #> guide: colourbar #> is_discrete: function #> is_empty: function #> labels: waiver #> limits: 0.2 0.9 #> make_sec_title: function #> make_title: function #> map: function #> map_df: function #> n.breaks: NULL #> na.value: NA #> name: waiver #> nice.breaks: TRUE #> oob: function #> palette: function #> position: left #> range: environment #> rescale: function #> rescaler: function #> reset: function #> right: TRUE #> scale_name: wiki_rep_pres #> show.limits: FALSE #> train: function #> train_df: function #> trans: trans #> transform: function #> transform_df: function #> super: scale_fill_wiki_dem_pres() #> #> aesthetics: fill #> after.stat: FALSE #> axis_order: function #> break_info: function #> break_positions: function #> breaks: 0 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 #> call: call #> clone: function #> dimension: function #> expand: waiver #> get_breaks: function #> get_breaks_minor: function #> get_labels: function #> get_limits: function #> guide: colourbar #> is_discrete: function #> is_empty: function #> labels: waiver #> limits: 0.2 0.9 #> make_sec_title: function #> make_title: function #> map: function #> map_df: function #> n.breaks: NULL #> na.value: NA #> name: waiver #> nice.breaks: TRUE #> oob: function #> palette: function #> position: left #> range: environment #> rescale: function #> rescaler: function #> reset: function #> right: TRUE #> scale_name: wiki_dem_pres #> show.limits: FALSE #> train: function #> train_df: function #> trans: trans #> transform: function #> transform_df: function #> super: scale_fill_wiki_dem_pres() #> #> aesthetics: fill #> after.stat: FALSE #> axis_order: function #> break_info: function #> break_positions: function #> breaks: 0 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 #> call: call #> clone: function #> dimension: function #> expand: waiver #> get_breaks: function #> get_breaks_minor: function #> get_labels: function #> get_limits: function #> guide: colourbar #> is_discrete: function #> is_empty: function #> labels: waiver #> limits: 0.2 0.9 #> make_sec_title: function #> make_title: function #> map: function #> map_df: function #> n.breaks: NULL #> na.value: NA #> name: waiver #> nice.breaks: TRUE #> oob: function #> palette: function #> position: left #> range: environment #> rescale: function #> rescaler: function #> reset: function #> right: TRUE #> scale_name: wiki_dem_pres #> show.limits: FALSE #> train: function #> train_df: function #> trans: trans #> transform: function #> transform_df: function #> super: "},{"path":"https://alarm-redist.github.io/ggredist/reference/theme_map.html","id":null,"dir":"Reference","previous_headings":"","what":"Map Theme — theme_map","title":"Map Theme — theme_map","text":"Theme maps uses 'Times' family transparent background.","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/theme_map.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Map Theme — theme_map","text":"","code":"theme_map(...)"},{"path":"https://alarm-redist.github.io/ggredist/reference/theme_map.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Map Theme — theme_map","text":"... additional parameters","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/theme_map.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Map Theme — theme_map","text":"ggplot2 theme","code":""},{"path":"https://alarm-redist.github.io/ggredist/reference/theme_map.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Map Theme — theme_map","text":"","code":"library(ggplot2) data(oregon) ggplot(oregon, aes(group = county)) + geom_district() + scale_fill_penn82() + theme_map()"},{"path":"https://alarm-redist.github.io/ggredist/news/index.html","id":"ggredist-002","dir":"Changelog","previous_headings":"","what":"ggredist 0.0.2","title":"ggredist 0.0.2","text":"CRAN release: 2022-11-23 Adds colors scales match Wikipedia’s typical election mapping colors.","code":""},{"path":"https://alarm-redist.github.io/ggredist/news/index.html","id":"ggredist-001","dir":"Changelog","previous_headings":"","what":"ggredist 0.0.1","title":"ggredist 0.0.1","text":"Added NEWS.md file track changes package. Adds new geom: geom_district(), geom_district_label(), geom_district_text(), geom_places() Adds scales discrete continuous partisan maps Adds theme_map()","code":""}]