likert Package

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

likert Package

reichmaj
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)

 


______________________________________________
[hidden email] 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.

Figure.png (21K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: likert Package

Uwe Ligges-3
If this is not docuemnted that way, write to the package maintainer.

Best,
Uwe Ligges




On 23.08.2017 02:51, Jeff Reichman 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)
>
>  
>
>
> Figure.png
>
>
>
>
> ______________________________________________
> [hidden email] 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.
>

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|

Re: likert Package

Richard M. Heiberger
In reply to this post by reichmaj
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 <[hidden email]> 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)
>
>
>
>
> ______________________________________________
> [hidden email] 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.

______________________________________________
[hidden email] 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.