-
-
Notifications
You must be signed in to change notification settings - Fork 65
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
no x/y labels with ggdistribution plots #218
Comments
Thanks for reporting this. Have you tried this on older versions of ggplot2? |
No, I haven't tried it with older versions of ggplot2. Maybe it is a regression? As you can see in an SO post, it worked several years ago. @alexandra-wall reported a similar issue last year. |
The relevant code looks correct to me ggfortify/R/fortify_stats_density.R Lines 48 to 51 in 912ba6d
Could you try the following?
|
It reports an error:
|
Just to say, I'm having the same issue and get the same error as petzi53 |
Okay I fixed it and created a pull request. |
Fixed by #222. Thanks! @axjadamson @petzi53 Please try out the GitHub version. |
No worries! I hope it works okay. xlabs and ylabs can be defined within the ggdistribution function now. |
The following code now works perfectly: My former trial where I used the
and then the ggplot additions:
it ignores the ggplot xlabs and ylabs ("x label" resp. "y label") and uses the former defined "x axis", ylab="y axis" for the graphic. System information |
@axjadamson Would you like to help take a look at the original use case? |
I must admit, I only took a quick look at it and could see that some arguments were missing that would allow labels to be specified with the 'ggdistribution' function, so I updated that. I don't have a deeper understanding of why it won't accept further ggplot additions for x and y axis labels. I would guess that it might be something to do with those arguments being renamed within the ggdistribution function and no longer recognising the ggplot arguments? But I don't know I'm afraid. |
No problem. Let's keep this open. |
Hello,
with the
ggdistribution()
function x and y labels do not appear.Code to reproduce the issue:
Plot produced by the code:
System information
Thanks,
Peter
The text was updated successfully, but these errors were encountered: