所以我正在使用levelplot類似這樣的相關性矩陣狀圖(摘自:Plot correlation matrix into a graph): library(lattice)
#Build the horizontal and vertical axis information
hor <- c("214", "215", "216", "224", "211", "212", "213",
我正在運行一些自舉置信區間,我想用均值繪製置信區間。類似這樣的: 這是我的模型。正如你可以看到DISTANCE和POS是因素。 lmm1 <- lmer((total) ~ DISTANCE+POS + (1|NO_UNIT),data=TURN)
TURN$POS<-as.factor(TURN$POS)#Change position and distance to factors
TUR
我試圖使用產生晶格命令多條曲線創建多個格子圖,如下: variable <- (string with variable names)
for (i in 1:X){
mypath <- paste(i,' - ',variable[i],'.png',sep='')
png(mypath,width=760)
xyplot(get(variable[i]) ~ GroupV