strengejacke / sjPlot

sjPlot - Data Visualization for Statistics in Social Science
https://strengejacke.github.io/sjPlot
606 stars 91 forks source link

Cat neutral in the middle #869

Open Andrzej-Andrzej opened 1 year ago

Andrzej-Andrzej commented 1 year ago

Is it possible to place neutral category in the middle of Likert scale on the plot_likert where 0 line is or will it always be situated on the side of the plot ?

strengejacke commented 1 year ago

Yes, I decided to put it on the side of the plot, because I have no idea how the neutral category could be placed in the middle. Say, we have 10% neutral. Would this mean you have both 5% to the positive and negative side (which adds up to 10%, but would not represent the neutral votes for each direction). Or 10% positive and negative? But then we have 20% neutral.

Andrzej-Andrzej commented 1 year ago

That makes sense, now I can understand the logic behind it thank you very much, one more thing, is it possible to do coord.flip() whem plotting Likert bars, something like horizontal = FALSE in HH::likert package ? https://www.r-bloggers.com/2012/12/plotting-likert-scales/

Sometimes values (percents or counts ) are scattered around or inside bars. Is there a way to align it "properly" and evenly eg. for publication submit ? Can you advice how to do it using your package, please ? https://www.reddit.com/r/rstats/comments/qq1svc/cant_figure_out_how_to_get_the_percentage_values/