Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upStrange behaviour when faceting #192
Comments
|
gghistogram computes internally some descriptive statistics before adding the mean line. These descriptive stats include mean, iqr, sd, var, cv, median, se. Using any of these key words as x variable, will give the same behavior when add = "mean" or add = "median". We'll fix this |
|
fixed now thanks |
This code
leads to this strange result:

It can be remedied by replacing

varwithvari. This leads to the expected outcome: