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

07-visualizing-geospatial-data #42

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

Azaya89
Copy link
Member

@Azaya89 Azaya89 commented Sep 13, 2023

fixes #41

This is the first commit in the notebook and I'm having a few difficulties making the first Cartogram plot. Mainly the following:

  • I'm not sure how to resize each state in the map to reflect the population density. My first idea is to multiply the density column by the size of each state but there is no column for "size" of each state. The data I used to plot the map is from bokeh.sampledata and each state 'size' was a list of latitude and longitude values which was plotted using the patches glyph.
  • The legend_field parameter displays from low to high values. I don't know how to get it to display in reverse (high to low), if the option is available.

@Azaya89 Azaya89 self-assigned this Sep 13, 2023
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@Azaya89
Copy link
Member Author

Azaya89 commented Oct 2, 2023

@ianthomas23 do you have any thoughts about how this plot could be accurately replicated? Here's what I'm trying to replicate https://clauswilke.com/dataviz/geospatial-data.html#cartograms

@ianthomas23
Copy link
Member

It is not my area of expertise, but you could pre-process the data to get the cartogram polygons. Bryan mentioned https://github.com/Flow-Based-Cartograms/go_cart recently as a possible solution.

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

Successfully merging this pull request may close these issues.

visualizing-geospatial-data
2 participants