[R] likert Package

Richard M. Heiberger rmh at temple.edu
Wed Aug 23 20:17:47 CEST 2017


most likely you have a factor with default levels which are not
ordered the way you want them to be ordered.
You can reorder the levels with the factor function.  If you still
need help after adjusting the order of the levels, then
please send the data to the list by including the output of
dput(data)
in the body of your email.

The name "data" is a bad name for your dataset as it conflicts with
the data function and the data= argument
to many functions.

On Tue, Aug 22, 2017 at 8:51 PM, Jeff Reichman <reichmanj at sbcglobal.net> wrote:
> R- Help Forum
>
>
>
> Working with the "likert" package and find that my "bar" graphs are
> backwards (see attached)
>
>
>
>> summary(results)
>
>   Item low neutral high mean        sd
>
> 4   Q4   5      15   80 2.75 0.5501196
>
> 5   Q5  20      40   40 2.20 0.7677719
>
> 1   Q1  65      30    5 1.40 0.5982430
>
> 3   Q3   5      90    5 2.00 0.3244428
>
> 2   Q2  90      10    0 1.10 0.3077935
>
>
>
>> results <- likert(data[,2:6], grouping = data$Group)
>> plot(results, type = "bar", centered = FALSE, group.order = c("Band 3",
> "Band 4"))
>
> In the attached figure the percentages appear correct but the bars are
> backwards (or appear to be backwards)
>
>
>
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list