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

Lollipop chart sorted within groups even with group=NULL #90

Closed
sfeds opened this issue Jun 7, 2018 · 1 comment
Closed

Lollipop chart sorted within groups even with group=NULL #90

sfeds opened this issue Jun 7, 2018 · 1 comment

Comments

@sfeds
Copy link

sfeds commented Jun 7, 2018

Hi,
I'm greatly enjoying your different package(s), thanks for sharing.

I'm having a small hiccup trying to plot my data.frame with a lollipop chart.
Even though I don't use the "group" option within the function, it still sorts by group.
This only happens when I use color= "my variable", even if I set group= NULL

This would be my full code:

ggdotchart(sub_imp, x = "variables", y = "value",
color = "cat",
palette = c("#E7B800", "#FC4E07"),
sorting = "descending",
rotate = TRUE,
dot.size = 2,
y.text.col = TRUE,
ggtheme = theme_pubr() ,
group = NULL
) + theme_cleveland() +
geom_hline(yintercept = 15, linetype = 2, color = "lightgray")

And the output is still sorted descending per group.

Any tips?
thanks!

@kassambara
Copy link
Owner

kassambara commented Jun 17, 2018

fixed now, thanks

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