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

NO MERGE. Alternative collection map based on distance #7

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

hardingnj
Copy link
Contributor

@hardingnj hardingnj commented May 29, 2020

Hi all,

This is an alternative collection map based purely on geographical distance, ie without any knowledge of political boundaries. Pies are placed at the mean lat/lon of members of that cluster.

Method:

  • Using cartopy compute pairwise geographical distance between all samples.
  • Build a dendrogram, and cut into clusters using a defined branch length (250km).
  • within clusters, compute mean lat/lon and species counts. Plot pies accordingly.

The main differences with the standard map are that:

  • The Gambia and Guinea Bissau get grouped.
  • Tanzania is split across several other clusters ie with Kenya, Uganda around the lake, and Tanzania only.
  • Cameroon is split into several clusters, b/c of geographic distance.

Currently clusters are based on a cut size of 250km. That can be adjusted as needed.

To do:

  • Consider land distances and sea distances separately, ie Bioko shouldn't be with some Cameroon samples as it stands now.
  • Naming of clusters, though perhaps not required.

Just putting it out there to see if we feel this is potentially worth pursuing. It lacks the simplicity of the per-country map, though it is closer to geographical truth.

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

Review Jupyter notebook visual diffs & provide feedback on notebooks.


Powered by ReviewNB

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

Successfully merging this pull request may close these issues.

1 participant