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

ggpubr: X-axis car label names not aligned with corresponding axis ticks & columns #301

Closed
sfd99 opened this issue Jun 27, 2020 · 6 comments

Comments

@sfd99
Copy link

sfd99 commented Jun 27, 2020

ggpubr is really easy and WONDERFUL.
Thanks Kassambara!!.

In your mtcars example:
Ordered Bar Plots
https://rpkgs.datanovia.com/ggpubr/#ordered-bar-plots

the X-axis car label names (at 90 degrees),
are not aligned with corresponding axis ticks & columns.
The car names are shifted to the right, horizontally.
So, each car name label
ends up between ticks,
not under a specific column tick-mark...

Same X-axis vs label misalignment,
with some other plots in the post.
---

On the other hand,
the Lollipop Chart is fine:
https://rpkgs.datanovia.com/ggpubr/#lollipop-chart

(ie: all 90 deg-rotated car names,
are neatly under the corresponding column tick-mark) .

Help!.
sfd99
SF
ggpubr 0.4.0
R 3.6.3 (latest)
Rstudio version 1.3.959 (latest)
Ubuntu Linux 18.04 64bits.

@kassambara
Copy link
Owner

fixed now, thanks!

@sfd99
Copy link
Author

sfd99 commented Jun 27, 2020

Ooops!
Updated to latest development version of ggpubr 0.4.0.999 f/ GIThub ,
devtools::install_github("kassambara/ggpubr")

Tried example again:
Error in ggbarplot(dfm, x = "name", y = "mpg", fill = "cyl", color = "white"..etc), :
could not find function "ggbarplot"

Is that the latest version I should now use (f/ GIThub) ,
or should I reinstall ggpubr f/CRAN?

@kassambara
Copy link
Owner

Does the following R code works ggpubr::ggbarplot(ToothGrowth, x = "dose", y = "len", add = "mean_sd") in a standard R terminal (outside Rstudio) ?

@sfd99
Copy link
Author

sfd99 commented Jun 27, 2020

just a sec...re-installing ggpubr f/ GIThub
and will try...

@sfd99
Copy link
Author

sfd99 commented Jun 27, 2020

  • Re-installing latest version of ggpubr f / GIT hub...
  • Re-started Rstudio on my PC,

EVERYTHING WORKS OK now!
All examples run fine 100%...

Thanks, Kassambara!.
Have a great and safe weekend in Marseille!.

@kassambara
Copy link
Owner

great, so we can close this issue. Have a nice weekend too!

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