geofacet icon indicating copy to clipboard operation
geofacet copied to clipboard

Example for custom grid produces an error

Open jdlee opened this issue 3 years ago • 1 comments

The following from the documentation fails to run

custom grid (move Wisconsin above Michigan)

my_grid <- us_state_grid1 my_grid$col[my_grid$code == "WI"] <- 7

ggplot(state_ranks, aes(variable, rank, fill = variable)) + geom_col() + coord_flip() + facet_geo(~ state, grid = my_grid)

Produces this error: grid 'my_grid' not found in package, checking online... Error in get_grid(grid) : grid 'my_grid' not recognized...

jdlee avatar Apr 27 '22 14:04 jdlee

Can you please port some more details such as the output of sessionInfo()? I was able to run this without an error using R 4.2.0

stedy avatar Apr 27 '22 21:04 stedy