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

Add "thirdcircle" option to allow narrowed hemicycles #60

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

Conversation

RichardMN
Copy link

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 incorrect type
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).

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",
Copy link
Owner

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"?

Copy link
Author

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.

Copy link
Owner

@zmeers zmeers left a 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.

@zmeers
Copy link
Owner

zmeers commented Dec 2, 2024

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.

@RichardMN
Copy link
Author

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.
I don't think I have permissions to merge this. @zmeers - if you're ok with this, please merge it in for me.

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.

2 participants