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

ggdotchart does not utilize order parameter or account for factors #223

Closed
omarwagih opened this issue Nov 12, 2019 · 1 comment
Closed

Comments

@omarwagih
Copy link

Using the order parameter or setting order via factor for ggdotchart does not work.

Example

require(data.table)
require(ggpubr)

# Use order parameter
tmp = data.table(x = c('a', 'b', 'c'), y=c(1,2,3))
ggdotchart(tmp, 'x', 'y', add='segment', order=c('a', 'c', 'b'))

# Use factor
tmp$a = factor(tmp$a, c('c', 'b', 'a'))
ggdotchart(tmp, 'x', 'y', add='segment', order=c('a', 'c', 'b'))

In both cases, order is ignored

@kassambara
Copy link
Owner

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