-
Notifications
You must be signed in to change notification settings - Fork 14
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
Add "thirdcircle" option to allow narrowed hemicycles #60
base: master
Are you sure you want to change the base?
Conversation
Adds "thirdcycle" option to parliament_data and extends calc_coordinates to narrow the range of theta. Currently noisy with debugging print statements, and comments need to be adjusted to reflect the code.
@@ -29,6 +29,7 @@ parliament_data <- function(election_data = NULL, | |||
type = c( | |||
"horseshoe", | |||
"semicircle", | |||
"thirdcircle", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it be "thirdcircle" or "third_circle"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could it be both? I'm inclined to allow more synonymous options - I have another branch where I've put in "hemicycle" for "semicircle" since this is a common term in French to describe the format of a such a parliament.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - minor comment re: wording. Please see below.
Apologies @RichardMN I forgot to tag you in my review - feel free to merge if you like. It's a substantial enough contribution to add your name to the author list as well, if you want. |
Sorry for the delay in responding on this. I've fixed the error warning for a mis-typed parliament type and added in a synonym. I think there may be an elegant way of handling a list of possible options, writing it once and having it show up in both places, but I've not written it. |
calc_coordinates
can now handle segment values other than 1 and 0.5, making a symmetrical narrowed cycle.parliament_data
now takes "thirdcircle
" as an option to create a 1/3 pie cycle.parliament_data
now also gives a more informative error for non-null incorrecttype
First vignette has an example of such a parliament, using data from the Australian senate.
Documentation has been rebuilt (but this was largely a function of running checks).