Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用带有 faceting 选项的 ggplot2 来绘制 data.frame 的多个结果。
这是一个具有三个因素的 data.frame :
我使用子集函数在一种条件下绘制一个参与者的结果,然后用 ggplot 进行刻面。但是,我想知道 ggplot2 中是否有更简单的解决方案?
感谢您的帮助,我目前正在学习 R 和 ggplot2。
听起来您正在尝试询问如何设置双向方面。我猜'刺激是你的预测变量。
一种方法是这样的:
ggplot( mydata, aes( x = stimuli, y = my.response) + facet_wrap( condition ~ participant) + geom_line()
或者
geom_point()