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
Issues with variables label #84
Comments
A quick update, |
I ran into this problem as well, and it seems like it will plot correctly by groups as long as the name of the item is under 24 characters, if over 24 characters then the name can't have any spaces. Not exactly sure how to fix this other than using abbreviated names instead of the full item text.
R version 3.5.0 (2018-04-23) Matrix products: default locale: attached base packages: other attached packages: |
Also ran into this issue with likert_1.3.5 Very confusing error message:
using shorter variable names as suggested by @RegisBK solved the issue. |
I tried to replicate the example in your website “Grouped by country…”. However the output is not exactly the same as the one from the example (see below). As you can notice there is a mess in the variable names, each variable is duplicated with two different formatting, I just wanted to display the first 4 variables grouped by country. Could you please? How could I get the variable label fixed and only display the figure for the 4 variable I wanted? Here are my syntax and the details of my R environment.
Many thanks in advance for your help.
Regards
Serigne
platform x86_64-w64-mingw32
arch x86_64
os mingw32
system x86_64, mingw32
status
major 3
minor 4.1
year 2017
month 06
day 30
svn rev 72865
language R
version.string R version 3.4.1 (2017-06-30)
nickname Single Candle
Syntax
require(likert)
ls("package:likert")
data(pisaitems)
items28 <- pisaitems[, substr(names(pisaitems), 1, 5) == "ST24Q"]
head(items28)
items28 <- rename(items28, c(ST24Q01 = "I read only if I have to.", ST24Q02 = "Reading is one of my favorite hobbies.",
ST24Q03 = "I like talking about books with other people.", ST24Q04 = "I find it hard to finish books.", ST24Q05 = "I feel happy if I receive a book as a present.",
ST24Q06 = "For me, reading is a waste of time.", ST24Q07 = "I enjoy going to a bookstore or a library.", ST24Q08 = "I read only to get information that I need.",
ST24Q09 = "I cannot sit still and read for more than a few minutes.", ST24Q10 = "I like to express my opinions about books I have read.",
ST24Q11 = "I like to exchange books with my friends"))
l28g <- likert(items28[,1:4], grouping = pisaitems$CNT)
plot(l28g)
likert_grouped_by_country.pdf
The text was updated successfully, but these errors were encountered: