Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Specify alpha for outlier points in geom_boxplot. #1644
Conversation
jonathan-g
added some commits
Mar 26, 2016
codecov-io
commented
Jun 3, 2016
•
Current coverage is 65.53%@@ master #1644 diff @@
==========================================
Files 158 158
Lines 5547 5548 +1
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
+ Hits 3635 3636 +1
Misses 1912 1912
Partials 0 0
|
jonathan-g
closed this
Jun 3, 2016
jonathan-g
reopened this
Jun 3, 2016
jonathan-g
changed the title from
Updated to hadley's latest. to Specify alpha for outlier points in geom_boxplot.
Jun 6, 2016
hadley
commented on the diff
Jul 28, 2016
| @@ -204,7 +207,7 @@ GeomBoxplot <- ggproto("GeomBoxplot", Geom, | ||
| size = outlier.size %||% data$size[1], | ||
| stroke = outlier.stroke %||% data$stroke[1], | ||
| fill = NA, | ||
| - alpha = NA, | ||
| + alpha = outlier.alpha %||% data$alpha[1], |
hadley
Owner
|
hadley
commented on an outdated diff
Jul 28, 2016
|
Could you please include a couple of before/after example plots in the PR? |
hadley
added feature in progress
labels
Jul 28, 2016
hadley
added this to the
v2.2.0
milestone
Jul 28, 2016
|
Will do. |
jonathan-g
added some commits
Jul 29, 2016
|
I have made the changes you requested, including adding an example of using outlier.alpha with the diamonds data. |
jonathan-g
added some commits
Jul 29, 2016
|
Just for completeness, here is the output from the example plots so you can see them without having to run the example code yourself:
|
thomasp85
was assigned
by hadley
Sep 6, 2016
|
@thomasp85 can you help finish this one off please? |
|
@jonathan-g Can you bring this PR up to date with the main branch and I'll have a look through it so we can get it merged |
|
@thomasp85 I've fixed the conflicts with the main branch and confirmed that it passes R CMD check with no warnings or errors. |
thomasp85
merged commit 0b3a8be
into
tidyverse:master
Sep 15, 2016
hadley
removed the
in progress
label
Sep 15, 2016
|
Thanks |


jonathan-g commentedJun 3, 2016
•
edited
Add a parameter
outlier.alphato geom_boxplot to allow the outlier points to have different alpha from the boxes. This parameter works the same way as outlier.colour, outlier.shape, etc.This is useful when plotting large data sets, so even when only a small fraction of the data is outliers, the number of outlier points can be large enough that it's hard to see them all. In such a case, setting alpha.outlier < 1 makes it easier to see the density of outliers.