Skip to content
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

Add hexagonal representation of Brazilian States (and other in the future?) #326

Open
JoaoCarabetta opened this issue Oct 4, 2023 · 0 comments

Comments

@JoaoCarabetta
Copy link
Collaborator

I just spent some time making a hexagonal representation of Brazil. I couldn't find it ready anywhere and had to do it myself. The hexagonal representation of states is usual in dataviz worldwide, especially in the USA. It is quite useful b/c it lets you compare states of sizes, keeping the geographical intuition of their location and neighborhood.

Below, there is a hexagonal representation that I generated after combining complicated hexagonal grid maths and LabVis UFRJ study on the topic.

image

Currently, geobr is focused on official spatial data sets of Brazil. But, practically, it is also a dataviz tool to plot Brazilian datasets in friendly and well-behaved shapes. People come here to make dirty plots of their data or beautiful publication-grade visualizations.

A counter-argument argues that these are 'artistic' representations, so size, spacing, ordering, and other specs should be customizable. The geobr package only pretends to serve geometries, not to modify them. Given that, I suggest we choose one set of specs of our liking and publish it as it is.

Given the prevalence of hexagonal visualization of states on foreign media and the use of the package. Adding this representation to the package seems reasonable, not as official data, but in a particular category. Also, more special geometries might be added in the future.

Considering the above, there are two options to add these special geometries:

  1. Add one generic function that will contain all special geometries.
    read_special_geom( type='state_hex)

  2. Add one function to each special geometry
    read_state_hex(year=2010)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant