I'm trying to produce an R plot with likert scale data using RStdudio v1.0.153. I get the following error:
Error in likert(think) :
All items (columns) must have the same number of levels
Link to my data is at: https://docs.google.com/spreadsheets/d/1TYUr-_oX9eADZ6it1w_4CQJ_wITP6xISaJJHTad3JbA/edit?usp=sharing
Below is the R code I used:
> library(psych)
> library(likert)
> myColor <- c("red","orange", "light blue","light green", "lavender")
> levels = c("Strongly Disagree", "Disagree", "Neutral", "Agree", "Strongly Agree")
> think$A = factor(think$A, levels, ordered = TRUE)
> think$B = factor(think$B, levels, ordered = TRUE)
> think$C = factor(think$C, levels, ordered = TRUE)
> think$D = factor(think$D, levels, ordered = TRUE)
> think$E = factor(think$E, levels, ordered = TRUE)
> think$F = factor(think$F, levels, ordered = TRUE)
> results <- likert(think)
> plot(results, col = myColor) #Have not used this yet because of the error above