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

limits and p_limits not truncating stat_eye() #227

Open
maxfarrell opened this issue Apr 23, 2024 · 1 comment
Open

limits and p_limits not truncating stat_eye() #227

maxfarrell opened this issue Apr 23, 2024 · 1 comment

Comments

@maxfarrell
Copy link

I'm plotting some conditional draws and some values are very extreme, leading to the stat_eye plots having very long tailed distributions, and a lot of empty area of the plot.

To reduce the plot area and zoom in in the informative parts of the distributions I'm trying to use "limits" and/or "p_limits" in the stat_eye() function to truncate these, but there is no change in the plot size.

I can always set scale limits in ggplot manually, but I thought I'd flag this

@mjskay
Copy link
Owner

mjskay commented Apr 23, 2024

Yeah, those arguments are intended for analytical distributions, where distributions with non-finite limits require us to provide a way to determine reasonable bounds. Sample-based distributions largely ignore these and take limits from the scale itself, with the expectation you would use coord_cartesian(xlim = ... ) or coord_cartesian(ylim = ... ) to set custom limits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants