I have two data frames:
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)
I want to create a xyplot with df1, grouped by ID, but without labeling each ID. Then add points to the existing xyplot with points from df2
library(lattice)
xyplot(df1$Score ~ df1$Time | df1$ID, type ="b", cex = .5)
Would appreciate suggestions on how not to label each ID (remove panel title) then add df2 as points to the existing plot