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

Oblast arrangement on 5x5 facet_wrap grid #14

Open
4 tasks
andkov opened this issue Aug 17, 2022 · 0 comments
Open
4 tasks

Oblast arrangement on 5x5 facet_wrap grid #14

andkov opened this issue Aug 17, 2022 · 0 comments
Assignees
Labels
Graph Composition looking for solution Well-defined problems that could be expressed as a simple reproducible example

Comments

@andkov
Copy link
Contributor

andkov commented Aug 17, 2022

Objective

Design the following frequency distribution graph :

X - number of radas in hromada's composition
Y - number of hromadas (frequency of occurce of hromadas with this number of radas)
Facet_wrap - oblast, free Y scaling, fixed X scaling
Color/FIll - region (e.g. West, East)

The oblasts arranged on 5 x 5 grid in integer sequence starting with 1 in the top left and increasing by 1 from letf to right, continuing each row with the leftmost cell. The order is controlled via column map_position in Kodificator tab oblasti and assigned as factor levels before passing to ggplot()

Notes

  1. Develop ./analysis/regions-and-distributions/regions-and-distributions.R (which is an exact copy of ./scripts/templates/report-isolated.R) to host the script for producing this graph in chunk graph-1
  2. Please work in ./analysis/regions-and-distribution/regions-and-distribution-yourname.R scripts on the main branch. I will be pulling consolidated solutions into the main script ./analysis/regions-and-distributions/regions-and-distributions.R
  3. Do not commit graphs.

Looking forward

Prepare to develop this graph in a graphing function which would work with both discrete values on the X-scale (e.g. counts of radas) and continuous values (e.g. tax revenue)

Modifications

  • add median lines for oblast, region, and country
  • print total number of hromadas in the top right corner of the cell
  • create display label for the facet that includes region name
  • connect Rmd to R and kick-off a dynamic report
@andkov andkov added the looking for solution Well-defined problems that could be expressed as a simple reproducible example label Aug 17, 2022
andkov added a commit that referenced this issue Aug 17, 2022
andkov added a commit that referenced this issue Aug 17, 2022
velgaks added a commit that referenced this issue Aug 18, 2022
andkov added a commit that referenced this issue Aug 19, 2022
#14, I put the starting script for the analysis in the wrong place, didn't move out from the native folder of the template
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Graph Composition looking for solution Well-defined problems that could be expressed as a simple reproducible example
Projects
None yet
Development

No branches or pull requests

4 participants