GGPLOT+ SPSS多个响应变量

发布于 2025-02-12 10:43:37 字数 357 浏览 1 评论 0原文

我有一个看起来像这样的数据集:

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文