Skip to content

Oblast arrangement on 5x5 facet_wrap grid #14

@andkov

Description

@andkov

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

Metadata

Metadata

Labels

Graph Compositionlooking for solutionWell-defined problems that could be expressed as a simple reproducible example

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions