Previously we were always overwriting the boundary param for histogram/densigrams so that we avoided the awkward scenario where a user would want a marginal histogram but wouldn't set an xlim on their scatter plot. Something like that would result in the bins towards the low/high end of the data getting cut. So, for example, if we remove this line:
In #164 , Patrick made a good point re: why this was a problematic design choice. This PR should fix the issue, in that it allows people to pass in center/boundary params now. Now we can do something like this:
Previously we were always overwriting the
boundary
param for histogram/densigrams so that we avoided the awkward scenario where a user would want a marginal histogram but wouldn't set an xlim on their scatter plot. Something like that would result in the bins towards the low/high end of the data getting cut. So, for example, if we remove this line:https://github.com/daattali/ggExtra/blob/808faafe7619ee43693fd8e87e81ddb714adee46/R/ggMarginal-MarginalPlot.R#L152
...we would end up with:
Created on 2022-03-02 by the reprex package (v2.0.1)
In #164 , Patrick made a good point re: why this was a problematic design choice. This PR should fix the issue, in that it allows people to pass in center/boundary params now. Now we can do something like this:
Created on 2022-03-02 by the reprex package (v2.0.1)