Questions tagged [likert]

141 questions
5
votes
2 answers

Error in likert: All items (columns) must have the same number of levels in R

My data: Q5 Q6 Q7 1 Not Agree Neutral Not Agree 2 Not Agree Neutral Neutral 3 Not Agree Agree Agree 4 Not Agree Agree Neutral 5 Neutral Not Agree Neutral 6 Not Agree Agree …
Grace Li
  • 51
  • 1
  • 4
5
votes
1 answer

Customize width of bar plot in likert plot

I'm using the likert package by jbryer and want to visualise the data with stacked bar plots. The size/width of these bar plots depends on how many bars are in the graph, i.e. with only one bar the bar is pretty wide, while they get thinner the more…
Torakoro
  • 162
  • 7
5
votes
2 answers

Faceted horizontal divergent stacked bar plot including negative values using dplyr and ggplot

I hope that this example will be clear. I would like to have stacked bars where the middle bar spans '0', for it represents a neutral value. This is used with a Likert scale. For reproducibility am using the diamonds data set. The following example…
4
votes
0 answers

Reordering Likert plots in R

I use the likert package to plot survey data. require(likert) data(pisaitems) items24 <- pisaitems[,substr(names(pisaitems), 1,5) == 'ST24Q'] names(items24) <- c( ST24Q01="I read only if I have to.", ST24Q02="Reading is one of my favorite…
Hawk
  • 41
  • 1
4
votes
0 answers

ggplot2. How to change the color of data-labels depending on their background (geom_segment)

I have produced a nice Likert-style plot below. I've put labels on segments to enhance clarity. However, I would like the labels to be white on dark background and black on light background. How can I accomplish that? I tried setting the…
4
votes
0 answers

Changing the order of Likert plots in R

I am using the likert package in R to plot survey data. For each of nine questions ( 1-5 Likert scale for each), I am grouping the data by men and women. In the list that is created when I run the likert command, the names of the nine survey…
NS1
  • 41
  • 3
3
votes
1 answer

Stacked butterfly/tornado graph with ggplot2, centered on zero, for visualising before-and-after likert questionnaires

I have data from a questionnaire given before and after an educational module. I am trying to visualise the data with ggplot in a stacked bar chart, more specifically stacked butterfly/tornado graph, where I want to make the two different occasions…
3
votes
1 answer

How to add percentage values to HH::likert() when using multiple panels?

I've looked as this question which has shown me how to add the percent labels to the plot ( likert plot showing percentage values). However, I can't seem to get it working with a multipanel plot. library(HH) #my hacky approach to add some custom…
JCran
  • 375
  • 2
  • 14
3
votes
1 answer

How to not have percentage labels overlap (repel percentage labels) in Likert bar plot?

I'm still relatively new to R, so any help here is very appreciated. I created a Likert bar plot, but some of the percentages shown on the plot overlap. I am wondering how to prevent this overlap from occurring? I read about ggrepel, and tried to…
kpgr
  • 31
  • 2
3
votes
1 answer

r likert graph editing

I am using the R package likert to make graphs according to a questionnaire. The graphs are basically just preference spectrums and look very much like this reprex (no original data, cannot be disclosed): data("pisaitems") title <- "How often do you…
Gmichael
  • 526
  • 1
  • 5
  • 16
3
votes
1 answer

Font size in likert plots (HH package)

How can I control the size of labels and legend text? This example is taken right of the HH documentation: require(HH) data(ProfChal) ## ProfChal is a data.frame. likert(Question ~ . , ProfChal[ProfChal$Subtable=="Employment sector",], main='Is…
moabit21
  • 639
  • 8
  • 20
2
votes
1 answer

Order ascending/descending in likert() with grouping

This is my dataframe library(likert) # Create dataframe group <- c("A","B","C","C","B","A","B","C","A","B","A","C","B","B","C","A","B","B","A","C","B","B","A","A") question1<- c(1,2,3,2,2,3,1,3,1,2,3,1,3,2,3,1,2,3,3,1,2,3,2,1) question2<-…
2
votes
1 answer

Problem using dataframe (summary) as input of likert package in R

I have done many graphs for likert scale questionaries using large datasets in its original form (microdata). But this time I’m working with a small dataframe which summarizes the results of processing a large dataset. The problem happens when…
2
votes
1 answer

Display grouped percentages in Likert plot with Plotly R

I have a dataframe like this: library(tidyverse) data <- tibble(Question_num = rep(c("Question_1", "Question_2"),each= 5), Answer = rep(c('Strongly disagree', 'Disagree', …
Paola
  • 21
  • 3
2
votes
1 answer

GGplot, overlaying fill patterns onto fill colors

I have data like this: Likert<-structure(list(Question = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L), .Label = "satisfied_6", class = "factor"), Answer =…
Joe Crozier
  • 944
  • 8
  • 20
1
2 3
9 10