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

integrate Jamie's percentogram and other visualization tools in Squigglepy or a different standalone plotting lib #42

Open
peterhurford opened this issue Jun 21, 2023 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@peterhurford
Copy link
Collaborator

https://statmodeling.stat.columbia.edu/2023/04/13/the-percentogram-a-histogram-binned-by-percentages-of-the-cumulative-distribution-rather-than-using-fixed-bin-widths/

Unfortunately these are in R so they'd have to be ported to Python

Context: Jamie works at Rethink Priorities

@peterhurford peterhurford added the enhancement New feature or request label Jun 21, 2023
@peterhurford peterhurford added this to the v0.28 milestone Jun 21, 2023
@peterhurford
Copy link
Collaborator Author

peterhurford commented Jul 10, 2023

Code: https://github.com/Jimbilben/jimbilben/blob/master/R/make_percentogram_x.R

my_vector <- rnorm(100000)

my_perc_data <- make_percentogram_x(my_vector, percent = 5, percentile_range = "quintile")

ggplot(my_perc_data) +
  geom_rect(aes(xmin = xmin, ymin = ymin, xmax = xmax, ymax = ymax, fill = quintile), color = "white")

@peterhurford peterhurford modified the milestones: v0.28, v0.27 Jul 10, 2023
@peterhurford peterhurford modified the milestones: v0.27, v0.28 Oct 22, 2023
@peterhurford peterhurford modified the milestones: v0.28, v0.29 Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant