Я пытаюсь создать панель парных коробчатых диаграмм с помощью ggpaired. У меня есть 2 набора оценок по 7 измерениям для 6 участников. Когда я использую ggpaired для построения только одного измерения, я могу заставить его работать без проблем:
p <- ggpaired(data, x = "group", y = "presenting",
xlab="Class Format",
ylab="Prevalence",
main="Presenting",
line.color = "black", line.size = 0.4)
p
I can't get this to work across multiple measures using facet.by:
p
I get the following error code in R: geom_path: Each group consists of only one observation. Do you need to adjust the group aesthetic?
I'm assuming the issue is how I have the data set up. I can only get the pairing to work with the data set up in the excel sheet on the left. I can only figure out how to do facet with the data set up in the excel sheet on the right.
Таблицы данных
Есть предложения о том, как организовать данные, чтобы заставить работать как пары, так и фасеты? Спасибо!