我有两个数据帧:如何删除面板标题,并添加点到晶格积
df1 <- read.table(text = "
Time Score ID
-83 19 C1
-69 17 C2
-55 15 C3
-28 22 C4
0 27 C5", header=TRUE)
df2 <- read.table(text = "
Time Score ID
-83 19 C1
-55 15 C3
0 27 C5", header=TRUE)
我想创建一个DF1 xyplot,通过ID分组,但没有标注每个ID。然后用点从DF2
library(lattice)
xyplot(df1$Score ~ df1$Time | df1$ID, type ="b", cex = .5)
希望得到有关如何不标注每个ID建议点添加到现有xyplot(除去面板标题),然后为点添加DF2到现有的情节
感谢Psidom格式化 – user2783615
可能会有所帮助。 http://stackoverflow.com/questions/15803149/how-to-add-points-to-multi-panel-lattice-graphics-bwplot – Psidom
df2是df1的子集,具有相同的值。 df2值将重叠绘制df1值。这是你想要的吗? – DaveTurek