Skip to content

Commit

Permalink
use df_mxstate_2020 instead of df_mxstate
Browse files Browse the repository at this point in the history
  • Loading branch information
diegovalle committed Jul 4, 2021
1 parent bb7b2b7 commit d13ab41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vignettes/articles/hexbins.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ knitr::opts_chunk$set(echo = TRUE,
library("mxmaps")
data("df_mxstate_2020")
df_mxstate$value = df_mxstate$afromexican / df_mxstate$pop * 100
mxhexbin_choropleth(df_mxstate, num_colors = 1,
df_mxstate_2020$value = df_mxstate_2020$afromexican / df_mxstate_2020$pop * 100
mxhexbin_choropleth(df_mxstate_2020, num_colors = 1,
title = "Percentage of the population that identifies as Afro-Mexican",
legend = "%")
Expand Down

0 comments on commit d13ab41

Please sign in to comment.