GGPLOT+ SPSS多个响应变量
我有一个看起来像这样的数据集:
data <- data.frame (id = c(1,2,3), V1 = c(2,3,4), V2 = c(1,2,3), Group = c(1,2,1))
v1和v2实际上是同一变量的两个特征,假设变量V。
我正在尝试制作一个ggplot,我可以在其中可视化我对我的群体显示的v变量有多少,,由变量组过滤。但这变得很棘手,因为我不想加倍帐户响应(2倍某些v特征,但仍然只有1个人没有2次),
实际上解决了该响应,GGPLOT如何可以显示存储在SPSS上的实际标签而不是值1 ,2,3等。
I have a dataset that looks somewhat like this:
data <- data.frame (id = c(1,2,3), V1 = c(2,3,4), V2 = c(1,2,3), Group = c(1,2,1))
V1 and V2 are actually 2 characteristics of the same variable, let's say variable V.
I am trying to make a ggplot where I can actually visualize how many V variables I have present on my population, filtered by variable group. But this gets tricky since I don't want to double account responses (2 times some V characteristic but still only 1 person has it not 2)
After actually having this solved how can ggplot show the actual label stored on the spss instead of values 1,2,3,etc.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论