diff --git a/R/grid_docs.R b/R/grid_docs.R index b69f635..f7f41c7 100644 --- a/R/grid_docs.R +++ b/R/grid_docs.R @@ -82,7 +82,7 @@ NULL #' @name argentina_grid1 #' @description -#' * **argentina_grid1:** Grid for the 23 provinces of Argentina. It includes the Malvinas/Falkland Islands and the Antarctic Territories (these are disputed, but they are included since many researchers might use data from these locations). Image reference [here](https://s-media-cache-ak0.pinimg.com/736x/bf/cb/96/bfcb9654477c127d3b0e0b72d5be65fc.jpg). Thanks to [eliocamp](https://github.com/eliocamp). +#' * **argentina_grid1:** Grid for the 23 provinces of Argentina. It includes the Malvinas/Falkland Islands and the Antarctic Territories (these are disputed, but they are included since many researchers might use data from these locations). Image reference [here](https://i.pinimg.com/736x/bf/cb/96/bfcb9654477c127d3b0e0b72d5be65fc.jpg). Thanks to [eliocamp](https://github.com/eliocamp). #' @usage argentina_grid1 #' @rdname grids #' @md @@ -258,7 +258,7 @@ NULL #' @name ng_state_grid1 #' @description -#' * **ng_state_grid1:** Grid layout for the 37 Federal States of Nigeria. Image reference [here](https://camo.githubusercontent.com/fa12bca8fe3f3de3d7af707400adbc7fc4656cc3/68747470733a2f2f75706c6f61642e77696b696d656469612e6f72672f77696b6970656469612f636f6d6d6f6e732f382f38332f4e6967657269615f7374617465732e706e67). Thanks to [ghosthedirewolf](https://github.com/ghosthedirewolf). +#' * **ng_state_grid1:** Grid layout for the 37 Federal States of Nigeria. Image reference [here](https://camo.githubusercontent.com/fa12bca8fe3f3de3d7af707400adbc7fc4656cc3/68747470733a2f2f75706c6f61642e77696b696d656469612e6f72672f77696b6970656469612f636f6d6d6f6e732f382f38332f4e6967657269615f7374617465732e706e67). Thanks to [aledemogr](https://github.com/aledemogr). #' @usage ng_state_grid1 #' @rdname grids #' @md @@ -266,7 +266,7 @@ NULL #' @name bd_upazila_grid1 #' @description -#' * **bd_upazila_grid1:** Grid layout for Bangladesh 64 Upazilas. Image reference [here](https://camo.githubusercontent.com/df1e4aff5a3e0238afef97586d324d9b23acf27b/68747470733a2f2f75706c6f61642e77696b696d656469612e6f72672f77696b6970656469612f636f6d6d6f6e732f7468756d622f322f32382f42445f4d61705f61646d696e2e7376672f38303070782d42445f4d61705f61646d696e2e7376672e706e67). Thanks to [ghosthedirewolf](https://github.com/ghosthedirewolf). +#' * **bd_upazila_grid1:** Grid layout for Bangladesh 64 Upazilas. Image reference [here](https://camo.githubusercontent.com/df1e4aff5a3e0238afef97586d324d9b23acf27b/68747470733a2f2f75706c6f61642e77696b696d656469612e6f72672f77696b6970656469612f636f6d6d6f6e732f7468756d622f322f32382f42445f4d61705f61646d696e2e7376672f38303070782d42445f4d61705f61646d696e2e7376672e706e67). Thanks to [aledemogr](https://github.com/aledemogr). #' @usage bd_upazila_grid1 #' @rdname grids #' @md @@ -354,7 +354,7 @@ NULL #' @name jo_gov_grid1 #' @description -#' * **jo_gov_grid1:** Grid layout for Governorates of Jordan. Image reference [here](https://user-images.githubusercontent.com/1275592/82837533-32964c00-9e7e-11ea-841f-8ab3a202b888.png). Thanks to [ghosthedirewolf](https://github.com/ghosthedirewolf). +#' * **jo_gov_grid1:** Grid layout for Governorates of Jordan. Image reference [here](https://user-images.githubusercontent.com/1275592/82837533-32964c00-9e7e-11ea-841f-8ab3a202b888.png). Thanks to [aledemogr](https://github.com/aledemogr). #' @usage jo_gov_grid1 #' @rdname grids #' @md @@ -442,7 +442,7 @@ NULL #' @name us_nh_counties_grid1 #' @description -#' * **us_nh_counties_grid1:** Grid layout for the 10 counties in New Hampshire. Image reference [here](https://en.wikipedia.org/wiki/List_of_counties_in_New_Hampshire#/media/File:New_Hampshire_Locator_Map.PNG). Thanks to [soungl](https://github.com/soungl). +#' * **us_nh_counties_grid1:** Grid layout for the 10 counties in New Hampshire. Image reference [here](https://en.wikipedia.org/wiki/List_of_counties_in_New_Hampshire#/media/File:New_Hampshire_Locator_Map.PNG). Thanks to [ghost](https://github.com/ghost). #' @usage us_nh_counties_grid1 #' @rdname grids #' @md @@ -650,7 +650,7 @@ NULL #' @name us_mo_counties_grid1 #' @description -#' * **us_mo_counties_grid1:** Grids for Counties of Missouri, United States Image reference [here](https://private-user-images.githubusercontent.com/1275592/286454845-404f638c-76fe-4ef7-8756-e536ba3b5bfe.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTEiLCJleHAiOjE3MDEyMjQ5MzYsIm5iZiI6MTcwMTIyNDYzNiwicGF0aCI6Ii8xMjc1NTkyLzI4NjQ1NDg0NS00MDRmNjM4Yy03NmZlLTRlZjctODc1Ni1lNTM2YmEzYjViZmUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQUlXTkpZQVg0Q1NWRUg1M0ElMkYyMDIzMTEyOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyMzExMjlUMDIyMzU2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OGFhZmNmMTljMDMzZjYyZjc4OTRjMjI2NWY3NTUyMjNlMjViZjc5NGRiMjEwZWY4YzllYjhiYzNjNGE4YzZjNCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.dHa3geXvsIVsHuXvMhqT3I6seiiCOqTFIv3AeSF96Dw). Thanks to [Yanqi-Xu](https://github.com/Yanqi-Xu). +#' * **us_mo_counties_grid1:** Grids for Counties of Missouri, United States Image reference [here](https://camo.githubusercontent.com/aecf36302e81059f92f399587faae8c88a81d6711ac468438c8c6ce71c2fd88a/68747470733a2f2f75706c6f61642e77696b696d656469612e6f72672f77696b6970656469612f636f6d6d6f6e732f322f32342f4d6973736f7572695f4c6f6361746f725f4d61702e504e47). Thanks to [Yanqi-Xu](https://github.com/Yanqi-Xu). #' @usage us_mo_counties_grid1 #' @rdname grids #' @md @@ -698,7 +698,7 @@ NULL #' @name ca_quebec_electoral_districts_grid1 #' @description -#' * **ca_quebec_electoral_districts_grid1:** Grid of Electoral Districts of Québec, Canada Image reference [here](https://private-user-images.githubusercontent.com/1275592/286448312-3de49f2f-cc0b-4509-b67a-84329245e4ab.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTEiLCJleHAiOjE3MDEyMjI1NTksIm5iZiI6MTcwMTIyMjI1OSwicGF0aCI6Ii8xMjc1NTkyLzI4NjQ0ODMxMi0zZGU0OWYyZi1jYzBiLTQ1MDktYjY3YS04NDMyOTI0NWU0YWIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQUlXTkpZQVg0Q1NWRUg1M0ElMkYyMDIzMTEyOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyMzExMjlUMDE0NDE5WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YjFjMjg3MTUzYTBkYmFkYWY1ODM5Nzg5YTg0MjIyOWM0MWJjMTJiZmMxZDE1MzVjMTY3MjEyY2EzMjlhNTIzNiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.qGJHg9WguHQZ9Hixk3DS_rmaZZd6eQJNpeJykSMQpbw). Thanks to [jhroy](https://github.com/jhroy). +#' * **ca_quebec_electoral_districts_grid1:** Grid of Electoral Districts of Québec, Canada Image reference [here](https://upload.wikimedia.org/wikipedia/commons/thumb/f/f4/2022_Québec_General_Election_Map.svg/1020px-2022_Québec_General_Election_Map.svg.png?20221230235759). Thanks to [jhroy](https://github.com/jhroy). #' @usage ca_quebec_electoral_districts_grid1 #' @rdname grids #' @md @@ -898,7 +898,7 @@ NULL #' @name fr_departements_grid1 #' @description -#' * **fr_departements_grid1:** Grid for France's departements, the second levels of administrative boundaries after the regions Image reference [here](https://private-user-images.githubusercontent.com/1275592/286455090-673ae153-092d-4632-ab43-d6be18139a1c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTEiLCJleHAiOjE3MDEyMjUwMjAsIm5iZiI6MTcwMTIyNDcyMCwicGF0aCI6Ii8xMjc1NTkyLzI4NjQ1NTA5MC02NzNhZTE1My0wOTJkLTQ2MzItYWI0My1kNmJlMTgxMzlhMWMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQUlXTkpZQVg0Q1NWRUg1M0ElMkYyMDIzMTEyOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyMzExMjlUMDIyNTIwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MzU5MDY3YzhhYjQ2OWIxYjdmYTc4MDI2NjM0ZGRhYTBkNjMwOTEyYWFkZmZlNjY2MzA0MmFhMjMyNDUwZDA3MSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.-V_AHDxiL3yAkk-oJAUYtdLM74O-_3ITjSYzU5-G8lo). Thanks to [tvroylandt](https://github.com/tvroylandt). +#' * **fr_departements_grid1:** Grid for France's departements, the second levels of administrative boundaries after the regions Image reference [here](https://camo.githubusercontent.com/790b9e52bccf40a4934c37ce58ea7726831811284200fc88abebce1ea22304b6/68747470733a2f2f75706c6f61642e77696b696d656469612e6f72672f77696b6970656469612f636f6d6d6f6e732f7468756d622f622f62312f50726f76696e6365735f6f665f4672616e63655f2532386e756d657265642532392e7376672f3139323070782d50726f76696e6365735f6f665f4672616e63655f2532386e756d657265642532392e7376672e706e67). Thanks to [tvroylandt](https://github.com/tvroylandt). #' @usage fr_departements_grid1 #' @rdname grids #' @md @@ -962,7 +962,7 @@ NULL #' @name us_state_without_DC_grid3 #' @description -#' * **us_state_without_DC_grid3:** United States grid without Washington, D.C Image reference [here](https://camo.githubusercontent.com/5038126fbe0052e7d42602dc6856aedc7822f639/687474703a2f2f6269742e6c792f75732d67726964). Thanks to [truongduongvn2](https://github.com/truongduongvn2). +#' * **us_state_without_DC_grid3:** United States grid without Washington, D.C Image reference [here](https://camo.githubusercontent.com/5038126fbe0052e7d42602dc6856aedc7822f639/687474703a2f2f6269742e6c792f75732d67726964). Thanks to [ghost](https://github.com/ghost). #' @usage us_state_without_DC_grid3 #' @rdname grids #' @md diff --git a/R/package-geofacet.R b/R/package-geofacet.R index b151a9b..b21b617 100644 --- a/R/package-geofacet.R +++ b/R/package-geofacet.R @@ -30,7 +30,7 @@ NULL #' @name state_ranks #' @docType data #' @description -#' State rankings in the following categories with the variable upon which ranking is based in parentheses: education (adults over 25 with a bachelor's degree in 2015), employment (March 2017 unemployment rate - Bureau of Labor Statistics), health (obesity rate from 2015 - Centers for Disease Control), insured (uninsured rate in 2015 - US Census), sleep (share of adults that report at least 7 hours of sleep each night from 2016 - Disease Control), wealth (poverty rate 2014/15 - US Census). In each category, the lower the ranking, the more favorable. This data is based on data presented here: \url{https://www.axios.com/an-emoji-built-from-data-for-every-state-2408885674.html} +#' State rankings in the following categories with the variable upon which ranking is based in parentheses: education (adults over 25 with a bachelor's degree in 2015), employment (March 2017 unemployment rate - Bureau of Labor Statistics), health (obesity rate from 2015 - Centers for Disease Control), insured (uninsured rate in 2015 - US Census), sleep (share of adults that report at least 7 hours of sleep each night from 2016 - Disease Control), wealth (poverty rate 2014/15 - US Census). In each category, the lower the ranking, the more favorable. This data is based on data presented here: \url{https://www.axios.com/2017/12/15/the-emoji-states-of-america-1513302318} #' @usage state_ranks #' @keywords data NULL diff --git a/cran-comments.md b/cran-comments.md index 38d2151..e476132 100644 --- a/cran-comments.md +++ b/cran-comments.md @@ -1,6 +1,8 @@ ## Release summary -**Resubmission:** Fix issue with a broken URL. +New submission + +Package was archived on CRAN today - Updated to be compatible with ggplot2 updates - Added new grids @@ -8,7 +10,7 @@ ## Test environments -* local OS X install, R 4.0.0 +* local OS X install, R 4.3.2 * ubuntu 16.04 (on travis-ci), R 4.0.0 * win-builder (devel and release) diff --git a/man-roxygen/ex-facet_geo.R b/man-roxygen/ex-facet_geo.R index 6fe8bf5..8216905 100644 --- a/man-roxygen/ex-facet_geo.R +++ b/man-roxygen/ex-facet_geo.R @@ -162,7 +162,7 @@ ggplot(election, aes("", pct, fill = candidate)) + facet_geo(~ state, grid = "us_state_grid2") + scale_y_continuous(expand = c(0, 0)) + labs(title = "2016 Election Results", - caption = "Data Source: http://bit.ly/2016votecount", + caption = "Data Source: https://docs.google.com/spreadsheets/d/133Eb4qQmOxNvtesw2hdVns073R68EZx4SfCnP4IGQf8", x = NULL, y = "Percentage of Voters") + theme(axis.title.x = element_blank(), @@ -177,7 +177,7 @@ ggplot(election, aes(candidate, pct, fill = candidate)) + theme_bw() + coord_flip() + labs(title = "2016 Election Results", - caption = "Data Source: http://bit.ly/2016votecount", + caption = "Data Source: https://docs.google.com/spreadsheets/d/133Eb4qQmOxNvtesw2hdVns073R68EZx4SfCnP4IGQf8", x = NULL, y = "Percentage of Voters") + theme(strip.text.x = element_text(size = 6)) @@ -188,7 +188,7 @@ ggplot(election, aes(candidate, votes / 1000000, fill = candidate)) + facet_geo(~ state, grid = "us_state_grid2") + coord_flip() + labs(title = "2016 Election Results", - caption = "Data Source: http://bit.ly/2016votecount", + caption = "Data Source: https://docs.google.com/spreadsheets/d/133Eb4qQmOxNvtesw2hdVns073R68EZx4SfCnP4IGQf8", x = NULL, y = "Votes (millions)") + theme(strip.text.x = element_text(size = 6)) diff --git a/man/facet_geo.Rd b/man/facet_geo.Rd index 2f5178d..136c857 100644 --- a/man/facet_geo.Rd +++ b/man/facet_geo.Rd @@ -185,7 +185,7 @@ ggplot(election, aes("", pct, fill = candidate)) + facet_geo(~ state, grid = "us_state_grid2") + scale_y_continuous(expand = c(0, 0)) + labs(title = "2016 Election Results", - caption = "Data Source: http://bit.ly/2016votecount", + caption = "Data Source: https://docs.google.com/spreadsheets/d/133Eb4qQmOxNvtesw2hdVns073R68EZx4SfCnP4IGQf8", x = NULL, y = "Percentage of Voters") + theme(axis.title.x = element_blank(), @@ -200,7 +200,7 @@ ggplot(election, aes(candidate, pct, fill = candidate)) + theme_bw() + coord_flip() + labs(title = "2016 Election Results", - caption = "Data Source: http://bit.ly/2016votecount", + caption = "Data Source: https://docs.google.com/spreadsheets/d/133Eb4qQmOxNvtesw2hdVns073R68EZx4SfCnP4IGQf8", x = NULL, y = "Percentage of Voters") + theme(strip.text.x = element_text(size = 6)) @@ -211,7 +211,7 @@ ggplot(election, aes(candidate, votes / 1000000, fill = candidate)) + facet_geo(~ state, grid = "us_state_grid2") + coord_flip() + labs(title = "2016 Election Results", - caption = "Data Source: http://bit.ly/2016votecount", + caption = "Data Source: https://docs.google.com/spreadsheets/d/133Eb4qQmOxNvtesw2hdVns073R68EZx4SfCnP4IGQf8", x = NULL, y = "Votes (millions)") + theme(strip.text.x = element_text(size = 6)) diff --git a/man/grids.Rd b/man/grids.Rd index 33e6249..916ff47 100644 --- a/man/grids.Rd +++ b/man/grids.Rd @@ -468,7 +468,7 @@ There are now 141 grids available in this package and more online. To view a ful } \itemize{ -\item \strong{argentina_grid1:} Grid for the 23 provinces of Argentina. It includes the Malvinas/Falkland Islands and the Antarctic Territories (these are disputed, but they are included since many researchers might use data from these locations). Image reference \href{https://s-media-cache-ak0.pinimg.com/736x/bf/cb/96/bfcb9654477c127d3b0e0b72d5be65fc.jpg}{here}. Thanks to \href{https://github.com/eliocamp}{eliocamp}. +\item \strong{argentina_grid1:} Grid for the 23 provinces of Argentina. It includes the Malvinas/Falkland Islands and the Antarctic Territories (these are disputed, but they are included since many researchers might use data from these locations). Image reference \href{https://i.pinimg.com/736x/bf/cb/96/bfcb9654477c127d3b0e0b72d5be65fc.jpg}{here}. Thanks to \href{https://github.com/eliocamp}{eliocamp}. } \itemize{ @@ -556,11 +556,11 @@ There are now 141 grids available in this package and more online. To view a ful } \itemize{ -\item \strong{ng_state_grid1:} Grid layout for the 37 Federal States of Nigeria. Image reference \href{https://camo.githubusercontent.com/fa12bca8fe3f3de3d7af707400adbc7fc4656cc3/68747470733a2f2f75706c6f61642e77696b696d656469612e6f72672f77696b6970656469612f636f6d6d6f6e732f382f38332f4e6967657269615f7374617465732e706e67}{here}. Thanks to \href{https://github.com/ghosthedirewolf}{ghosthedirewolf}. +\item \strong{ng_state_grid1:} Grid layout for the 37 Federal States of Nigeria. Image reference \href{https://camo.githubusercontent.com/fa12bca8fe3f3de3d7af707400adbc7fc4656cc3/68747470733a2f2f75706c6f61642e77696b696d656469612e6f72672f77696b6970656469612f636f6d6d6f6e732f382f38332f4e6967657269615f7374617465732e706e67}{here}. Thanks to \href{https://github.com/aledemogr}{aledemogr}. } \itemize{ -\item \strong{bd_upazila_grid1:} Grid layout for Bangladesh 64 Upazilas. Image reference \href{https://camo.githubusercontent.com/df1e4aff5a3e0238afef97586d324d9b23acf27b/68747470733a2f2f75706c6f61642e77696b696d656469612e6f72672f77696b6970656469612f636f6d6d6f6e732f7468756d622f322f32382f42445f4d61705f61646d696e2e7376672f38303070782d42445f4d61705f61646d696e2e7376672e706e67}{here}. Thanks to \href{https://github.com/ghosthedirewolf}{ghosthedirewolf}. +\item \strong{bd_upazila_grid1:} Grid layout for Bangladesh 64 Upazilas. Image reference \href{https://camo.githubusercontent.com/df1e4aff5a3e0238afef97586d324d9b23acf27b/68747470733a2f2f75706c6f61642e77696b696d656469612e6f72672f77696b6970656469612f636f6d6d6f6e732f7468756d622f322f32382f42445f4d61705f61646d696e2e7376672f38303070782d42445f4d61705f61646d696e2e7376672e706e67}{here}. Thanks to \href{https://github.com/aledemogr}{aledemogr}. } \itemize{ @@ -604,7 +604,7 @@ There are now 141 grids available in this package and more online. To view a ful } \itemize{ -\item \strong{jo_gov_grid1:} Grid layout for Governorates of Jordan. Image reference \href{https://user-images.githubusercontent.com/1275592/82837533-32964c00-9e7e-11ea-841f-8ab3a202b888.png}{here}. Thanks to \href{https://github.com/ghosthedirewolf}{ghosthedirewolf}. +\item \strong{jo_gov_grid1:} Grid layout for Governorates of Jordan. Image reference \href{https://user-images.githubusercontent.com/1275592/82837533-32964c00-9e7e-11ea-841f-8ab3a202b888.png}{here}. Thanks to \href{https://github.com/aledemogr}{aledemogr}. } \itemize{ @@ -648,7 +648,7 @@ There are now 141 grids available in this package and more online. To view a ful } \itemize{ -\item \strong{us_nh_counties_grid1:} Grid layout for the 10 counties in New Hampshire. Image reference \href{https://en.wikipedia.org/wiki/List_of_counties_in_New_Hampshire#/media/File:New_Hampshire_Locator_Map.PNG}{here}. Thanks to \href{https://github.com/soungl}{soungl}. +\item \strong{us_nh_counties_grid1:} Grid layout for the 10 counties in New Hampshire. Image reference \href{https://en.wikipedia.org/wiki/List_of_counties_in_New_Hampshire#/media/File:New_Hampshire_Locator_Map.PNG}{here}. Thanks to \href{https://github.com/ghost}{ghost}. } \itemize{ @@ -752,7 +752,7 @@ There are now 141 grids available in this package and more online. To view a ful } \itemize{ -\item \strong{us_mo_counties_grid1:} Grids for Counties of Missouri, United States Image reference \href{https://private-user-images.githubusercontent.com/1275592/286454845-404f638c-76fe-4ef7-8756-e536ba3b5bfe.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTEiLCJleHAiOjE3MDEyMjQ5MzYsIm5iZiI6MTcwMTIyNDYzNiwicGF0aCI6Ii8xMjc1NTkyLzI4NjQ1NDg0NS00MDRmNjM4Yy03NmZlLTRlZjctODc1Ni1lNTM2YmEzYjViZmUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQUlXTkpZQVg0Q1NWRUg1M0ElMkYyMDIzMTEyOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyMzExMjlUMDIyMzU2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OGFhZmNmMTljMDMzZjYyZjc4OTRjMjI2NWY3NTUyMjNlMjViZjc5NGRiMjEwZWY4YzllYjhiYzNjNGE4YzZjNCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.dHa3geXvsIVsHuXvMhqT3I6seiiCOqTFIv3AeSF96Dw}{here}. Thanks to \href{https://github.com/Yanqi-Xu}{Yanqi-Xu}. +\item \strong{us_mo_counties_grid1:} Grids for Counties of Missouri, United States Image reference \href{https://camo.githubusercontent.com/aecf36302e81059f92f399587faae8c88a81d6711ac468438c8c6ce71c2fd88a/68747470733a2f2f75706c6f61642e77696b696d656469612e6f72672f77696b6970656469612f636f6d6d6f6e732f322f32342f4d6973736f7572695f4c6f6361746f725f4d61702e504e47}{here}. Thanks to \href{https://github.com/Yanqi-Xu}{Yanqi-Xu}. } \itemize{ @@ -776,7 +776,7 @@ There are now 141 grids available in this package and more online. To view a ful } \itemize{ -\item \strong{ca_quebec_electoral_districts_grid1:} Grid of Electoral Districts of Québec, Canada Image reference \href{https://private-user-images.githubusercontent.com/1275592/286448312-3de49f2f-cc0b-4509-b67a-84329245e4ab.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTEiLCJleHAiOjE3MDEyMjI1NTksIm5iZiI6MTcwMTIyMjI1OSwicGF0aCI6Ii8xMjc1NTkyLzI4NjQ0ODMxMi0zZGU0OWYyZi1jYzBiLTQ1MDktYjY3YS04NDMyOTI0NWU0YWIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQUlXTkpZQVg0Q1NWRUg1M0ElMkYyMDIzMTEyOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyMzExMjlUMDE0NDE5WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YjFjMjg3MTUzYTBkYmFkYWY1ODM5Nzg5YTg0MjIyOWM0MWJjMTJiZmMxZDE1MzVjMTY3MjEyY2EzMjlhNTIzNiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.qGJHg9WguHQZ9Hixk3DS_rmaZZd6eQJNpeJykSMQpbw}{here}. Thanks to \href{https://github.com/jhroy}{jhroy}. +\item \strong{ca_quebec_electoral_districts_grid1:} Grid of Electoral Districts of Québec, Canada Image reference \href{https://upload.wikimedia.org/wikipedia/commons/thumb/f/f4/2022_Québec_General_Election_Map.svg/1020px-2022_Québec_General_Election_Map.svg.png?20221230235759}{here}. Thanks to \href{https://github.com/jhroy}{jhroy}. } \itemize{ @@ -876,7 +876,7 @@ There are now 141 grids available in this package and more online. To view a ful } \itemize{ -\item \strong{fr_departements_grid1:} Grid for France's departements, the second levels of administrative boundaries after the regions Image reference \href{https://private-user-images.githubusercontent.com/1275592/286455090-673ae153-092d-4632-ab43-d6be18139a1c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTEiLCJleHAiOjE3MDEyMjUwMjAsIm5iZiI6MTcwMTIyNDcyMCwicGF0aCI6Ii8xMjc1NTkyLzI4NjQ1NTA5MC02NzNhZTE1My0wOTJkLTQ2MzItYWI0My1kNmJlMTgxMzlhMWMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQUlXTkpZQVg0Q1NWRUg1M0ElMkYyMDIzMTEyOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyMzExMjlUMDIyNTIwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MzU5MDY3YzhhYjQ2OWIxYjdmYTc4MDI2NjM0ZGRhYTBkNjMwOTEyYWFkZmZlNjY2MzA0MmFhMjMyNDUwZDA3MSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.-V_AHDxiL3yAkk-oJAUYtdLM74O-_3ITjSYzU5-G8lo}{here}. Thanks to \href{https://github.com/tvroylandt}{tvroylandt}. +\item \strong{fr_departements_grid1:} Grid for France's departements, the second levels of administrative boundaries after the regions Image reference \href{https://camo.githubusercontent.com/790b9e52bccf40a4934c37ce58ea7726831811284200fc88abebce1ea22304b6/68747470733a2f2f75706c6f61642e77696b696d656469612e6f72672f77696b6970656469612f636f6d6d6f6e732f7468756d622f622f62312f50726f76696e6365735f6f665f4672616e63655f2532386e756d657265642532392e7376672f3139323070782d50726f76696e6365735f6f665f4672616e63655f2532386e756d657265642532392e7376672e706e67}{here}. Thanks to \href{https://github.com/tvroylandt}{tvroylandt}. } \itemize{ @@ -908,7 +908,7 @@ There are now 141 grids available in this package and more online. To view a ful } \itemize{ -\item \strong{us_state_without_DC_grid3:} United States grid without Washington, D.C Image reference \href{https://camo.githubusercontent.com/5038126fbe0052e7d42602dc6856aedc7822f639/687474703a2f2f6269742e6c792f75732d67726964}{here}. Thanks to \href{https://github.com/truongduongvn2}{truongduongvn2}. +\item \strong{us_state_without_DC_grid3:} United States grid without Washington, D.C Image reference \href{https://camo.githubusercontent.com/5038126fbe0052e7d42602dc6856aedc7822f639/687474703a2f2f6269742e6c792f75732d67726964}{here}. Thanks to \href{https://github.com/ghost}{ghost}. } \itemize{ diff --git a/man/state_ranks.Rd b/man/state_ranks.Rd index a6537fc..25f6da6 100644 --- a/man/state_ranks.Rd +++ b/man/state_ranks.Rd @@ -8,6 +8,6 @@ state_ranks } \description{ -State rankings in the following categories with the variable upon which ranking is based in parentheses: education (adults over 25 with a bachelor's degree in 2015), employment (March 2017 unemployment rate - Bureau of Labor Statistics), health (obesity rate from 2015 - Centers for Disease Control), insured (uninsured rate in 2015 - US Census), sleep (share of adults that report at least 7 hours of sleep each night from 2016 - Disease Control), wealth (poverty rate 2014/15 - US Census). In each category, the lower the ranking, the more favorable. This data is based on data presented here: \url{https://www.axios.com/an-emoji-built-from-data-for-every-state-2408885674.html} +State rankings in the following categories with the variable upon which ranking is based in parentheses: education (adults over 25 with a bachelor's degree in 2015), employment (March 2017 unemployment rate - Bureau of Labor Statistics), health (obesity rate from 2015 - Centers for Disease Control), insured (uninsured rate in 2015 - US Census), sleep (share of adults that report at least 7 hours of sleep each night from 2016 - Disease Control), wealth (poverty rate 2014/15 - US Census). In each category, the lower the ranking, the more favorable. This data is based on data presented here: \url{https://www.axios.com/2017/12/15/the-emoji-states-of-america-1513302318} } \keyword{data} diff --git a/vignettes/geofacet.Rmd b/vignettes/geofacet.Rmd index aa8a91a..67423b0 100644 --- a/vignettes/geofacet.Rmd +++ b/vignettes/geofacet.Rmd @@ -43,7 +43,7 @@ library(ggplot2) The main function in this package is `facet_geo()` and its use can be thought of as equivalent to ggplot2's `facet_wrap()` except for the output it creates. If you know how to use ggplot2, then you essentially know how to use this package. -Let's consider an example based on [this article](https://www.axios.com/an-emoji-built-from-data-for-every-state-2408885674.html), which uses emoji / Chernoff faces to show various quality-of-life metrics for US states. +Let's consider an example based on [this article](https://www.axios.com/2017/12/15/the-emoji-states-of-america-1513302318), which uses emoji / Chernoff faces to show various quality-of-life metrics for US states. This data is available in the geofacet package under the name `state_ranks`. @@ -254,7 +254,7 @@ ggplot(election, aes("", pct, fill = candidate)) + facet_geo(~ state, grid = "us_state_grid2") + scale_y_continuous(expand = c(0, 0)) + labs(title = "2016 Election Results", - caption = "Data Source: http://bit.ly/2016votecount", + caption = "Data Source: https://docs.google.com/spreadsheets/d/133Eb4qQmOxNvtesw2hdVns073R68EZx4SfCnP4IGQf8", x = NULL, y = "Percentage of Voters") + theme(axis.title.x = element_blank(), @@ -271,7 +271,7 @@ ggplot(election, aes(candidate, pct, fill = candidate)) + theme_bw() + coord_flip() + labs(title = "2016 Election Results", - caption = "Data Source: http://bit.ly/2016votecount", + caption = "Data Source: https://docs.google.com/spreadsheets/d/133Eb4qQmOxNvtesw2hdVns073R68EZx4SfCnP4IGQf8", x = NULL, y = "Percentage of Voters") + theme(strip.text.x = element_text(size = 6)) @@ -284,7 +284,7 @@ ggplot(election, aes(candidate, votes / 1000000, fill = candidate)) + facet_geo(~ state, grid = "us_state_grid2") + coord_flip() + labs(title = "2016 Election Results", - caption = "Data Source: http://bit.ly/2016votecount", + caption = "Data Source: https://docs.google.com/spreadsheets/d/133Eb4qQmOxNvtesw2hdVns073R68EZx4SfCnP4IGQf8", x = NULL, y = "Votes (millions)") + theme(strip.text.x = element_text(size = 6))