Plotting likert scale questions and grouping them
问题 I would like to create a plot, like is shown here: https://stats.stackexchange.com/a/25156, the stacked bar chart type. I have been trying to get it to work with the likert package all afternoon. I did manage to get a plot, but I couldn't get it to group by pre/post. Here's a sample of data: data <- structure(list(ID = c(1L, 2L, 3L, 4L, 5L, 6L, 7L, 8L, 9L, 10L, 1L, 2L, 3L, 4L, 5L, 6L, 7L, 8L, 9L, 10L), Survey = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L