I'd like to make some box and whisker plots, but the issue is that I only have the percentiles, not the underlying data. The percentiles are the locations where the box/whisker lines would be, so I should be able to make the graphs, but for disclosure/privacy reasons I only have the percentiles.
Can anyone think of a way to either (1) draw a box plot directly from the percentiles, or (2) more roundabout, generate a column of data with the distribution implied by some percentiles, so I could then easily use the graph box command?
The data is currently organized as below, where each variable I'd like to plot is a row of a CSV, with 5, 25, 50, 75, and 95th percentile for control (0) and treatment (1). Ideally treatment and control would go side by side, as if I used the 'over' option.
Can anyone think of a way to either (1) draw a box plot directly from the percentiles, or (2) more roundabout, generate a column of data with the distribution implied by some percentiles, so I could then easily use the graph box command?
The data is currently organized as below, where each variable I'd like to plot is a row of a CSV, with 5, 25, 50, 75, and 95th percentile for control (0) and treatment (1). Ideally treatment and control would go side by side, as if I used the 'over' option.
name | p050 | p250 | p500 | p750 | p950 | p051 | p251 | p501 | p751 | p951 |
zinc_avg | 0.47 | 2.0 | 4.76 | 7.265 | 11.26 | 3.734 | 7.393 | 10.967 | 13.63 | 25.12 |
Comment