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

Create the scores trend plot #71

Open
Melsteroni opened this issue Jul 30, 2021 · 2 comments
Open

Create the scores trend plot #71

Melsteroni opened this issue Jul 30, 2021 · 2 comments
Assignees
Labels
data viz Related to any of the D3 data visualization elements priority: low

Comments

@Melsteroni
Copy link
Collaborator

Here are the data describing change over time for each country and each goal (and the overall Index score): https://github.com/OHI-Science/ohi-global/blob/draft/yearly_results/global2020/Results/data/trends_website.csv

Here is a quick sketch of the plot I was thinking for visualizing trend patterns. This is for Artisanal Opportunities and each dot represents one country. You can see most countries have improving AO scores over the 9 year period.

image

We would want to:

  • color according to trend
  • adjust axis limits and binning
  • make interactive (region name, trend pattern,etc)
  • etc.

I don't think this can actually automate this because it seems like we will have to fuss with each plot to actually get it to look decent. But: we could provide interactive plots in html format.

If this general format seems useful we could explore improvements.

@robyngit robyngit self-assigned this Aug 4, 2021
@robyngit
Copy link
Member

robyngit commented Aug 4, 2021

We discussed this today and decided to:

  • Implement this graph in D3 (including a shortcode) and use in the goal pages, maybe also the region pages
  • Set the opacity of each circle relative to the p-value, so significant trends more opaque than non-significant trends
  • Instead of "trend" on the x-axis, label as "average change in score per year" (or similar)

@robyngit robyngit changed the title DISCUSS: Draft of trend plots Create the scores trend plot Aug 4, 2021
@robyngit robyngit added the data viz Related to any of the D3 data visualization elements label Aug 4, 2021
@Melsteroni
Copy link
Collaborator Author

Cut this idea. Melanie will write text to discuss trend in a narrative fashion on the goal score pages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data viz Related to any of the D3 data visualization elements priority: low
Projects
None yet
Development

No branches or pull requests

2 participants