You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thank you for the Likert package!
At the moment I face an issue where the questionnaire has 'not sure' as an answer. While I made this answer to appear as a gray color and as the last option in the plot, the calculation of percentage is not working correctly. So i want to exclude the 'not sure' from the calculation. the second issue, the percentages should be flipped, they are shown reversed.
My code:
require(likert)
items2_$Q2_1 <- factor(items2_$Q2_1, levels = c('Not at all acceptable', 'A little acceptable', 'Quite acceptable', 'Very acceptable', 'Not sure'), ordered = T)
items2_$Q2_2 <- factor(items2_$Q2_2, levels = c('Not at all acceptable', 'A little acceptable', 'Quite acceptable', 'Very acceptable', 'Not sure'), ordered = T)
items2_$Q2_3 <- factor(items2_$Q2_3, levels = c('Not at all acceptable', 'A little acceptable', 'Quite acceptable', 'Very acceptable', 'Not sure'), ordered = T)
items2_$Q2_4 <- factor(items2_$Q2_4, levels = c('Not at all acceptable', 'A little acceptable', 'Quite acceptable', 'Very acceptable', 'Not sure'), ordered = T)
items2_$Q2_5 <- factor(items2_$Q2_5, levels = c('Not at all acceptable', 'A little acceptable', 'Quite acceptable', 'Very acceptable', 'Not sure'), ordered = T)
l2g_ <- likert(items2_, grouping = survey2$OccStatus)
plot(l2g_, centered = F, text.size = 3, colors=c('lemonchiffon2','lemonchiffon3','cadetblue3','cadetblue', 'gray78')) +
theme(axis.title.x = element_text(size=16),
axis.text.x = element_text(size=10),
axis.text.y = element_text(size=7),
strip.text=element_text(size=8))
Result:
I wish to make something similar to this (where the important is calculated based on very important and somewhat important, and not important is calculated based on the other two options; the Don't know is excluded from calculation):
But the most important thing is the swapped percentage issue and how to exclude 'not sure' from the percentage calculation even though keeping it shown in the plot.
Thank you.
The text was updated successfully, but these errors were encountered:
Hi,
First of all, thank you for the Likert package!
At the moment I face an issue where the questionnaire has 'not sure' as an answer. While I made this answer to appear as a gray color and as the last option in the plot, the calculation of percentage is not working correctly. So i want to exclude the 'not sure' from the calculation. the second issue, the percentages should be flipped, they are shown reversed.
My code:
Result:
I wish to make something similar to this (where the important is calculated based on very important and somewhat important, and not important is calculated based on the other two options; the Don't know is excluded from calculation):
But the most important thing is the swapped percentage issue and how to exclude 'not sure' from the percentage calculation even though keeping it shown in the plot.
Thank you.
The text was updated successfully, but these errors were encountered: