-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Follow-up to #353, create a geofacet with Guerry data #404
Comments
I also tried the grid designer, uploading my grid as a .csv file. It gave me this error:
I guess I have to try more bins, but I'm still stumped on how to use my own grid. |
I posted a revision of the code above, but using a 17 x 17 grid on SO, https://stackoverflow.com/questions/76268255/how-to-create-a-geofacet-grid-from-the-guerry-map-of-france-in-1830 |
Sorry to persist, but I'd really like to solve this. I'm attaching the .csv file for my 17 x 17 grid. There are no duplicates.
I also tried to use your GeoGrid Designer with this csv file. But it gives me:
How can I make this work? |
You need to send the data frame object However, if you send the data frame, you will get the following error: grid_preview(gfrance85_grid) +
geom_text(aes(label = name), size = 2, nudge_y = 0.35)
# Error: A custom grid must have unique row/column locations for each entry There are several entries that share the same grid cell: count(gfrance85_grid, row, col) %>% arrange(desc(n))
# row col n
# 1 2 7 2
# 2 3 8 2
# 3 4 6 2
# 4 5 1 2
# 5 5 6 2
# 6 5 9 2
# 7 6 1 2
# 8 6 4 2
# 9 6 8 2
# 10 7 4 2
# 11 8 9 2
# 12 9 2 2
# 13 9 8 2
# 14 10 2 2
# 15 10 8 2
# 16 1 8 1
# 17 2 8 1
# ... Have you tried using |
I'm re-opening this query #353 after I have what I think is a solution, but I get an error when I try to use it.
The code below creates
gfrance85_grid
from the map dataGuerry::gfrance85
.This looks OK to me:
grid_preview
gives me this error, suggesting it does not accept an appropriate grid data frame as input, but instead looks inside the package:The text was updated successfully, but these errors were encountered: