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

Unnatural sort order when plotting with ordered=FALSE #33

Closed
jonaskoeppel opened this issue Sep 11, 2014 · 4 comments
Closed

Unnatural sort order when plotting with ordered=FALSE #33

jonaskoeppel opened this issue Sep 11, 2014 · 4 comments

Comments

@jonaskoeppel
Copy link

Hey there,
I'm trying to plot some likert scale items using likert.bar.plot. I use the function directly (instead of the generic plot function) because I don't want the variables to be sorted by the plot function (I've got the labels numbered and I'd like to keep this order).

Plotting with ordered=FALSE gives me kind of an unnatural sort order (see attachment). Instead of 1 ... 14 (like in the likert object) I get 9 ... 1, 14 ... 10.

Can you help me with this?

Thanks a lot for the support! Great package, by the way!

Jonas

ordered = TRUE (generic plot function)
ordered true

ordered = FALSE
ordered false

@marforic
Copy link

marforic commented Oct 2, 2014

I am plagued by the same problem and I haven't found a solution so far. A fix or explanation would be really appreciated.

@marforic
Copy link

marforic commented Oct 2, 2014

I've found out that by giving the group.order parameter to the "plot" function solves the problem!

@produnis
Copy link

I have the problem, that I don't get a sorted plot (your image 1), but always this unsorted thing (picture 2). I found out that this happens, if at least one item does not have data for all its levels. Lets say item1 has levels "no", "maybe no", "maybe yes" and "yes", but in your data, people just checked "yes" and "no", and nobody said "maybe no".
So, if an item has 0% with any item level, I get picture 2...

@jbryer
Copy link
Owner

jbryer commented Nov 12, 2015

Fixed in the latest Github version.

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

4 participants