我有數據幀 df <- data.frame(
site=rep(c("s1","s2","s3"),3),
grp=c("a","a","a","b","b","b","c","c","c"),
total=c(0,1,2,0,4,6,8,0,2)
)
df
site grp total
1 s1 a 0
2 s2 a 1
3 s3 a 2
如何在所有底部面板下顯示軸?在此示例中,如果存在缺少方格的網格,則不會顯示該軸。 library(lattice)
arr<- array(replicate(10, rnorm(10)), dim =c(10,10,10))
dotplot(arr, type = "b", horizontal = F, col = "red",
main =list(" Centrality",