【问题标题】:lattice xyplot 3x3 arrangement格子 xyplot 3x3 排列
【发布时间】:2020-04-17 07:53:02
【问题描述】:

我有 3 个来自 lattice 的 xyplots。到现在我只用过

print(pd1, split = c(1,1,2,2), more = TRUE)

print(pd2, split = c(2, 1, 2, 2), more = TRUE) 等(使用拆分) 以 2x2 的方式排列地块。但是,如何将它用于 1x3 或 3x3 排列?我试图做一些职位,但我不太了解它实际上是如何工作的。

【问题讨论】:

    标签: matrix lattice


    【解决方案1】:
    # I think this is what you want
    
    data <- data.frame(class = LETTERS[1:6], value = 1:6)
    
    pd1 <- dotplot(value ~ class, data)
    pd2 <- dotplot(class ~ value, data)
    pd3 <- dotplot(class ~ value | cut(value, c(0, 3, 6)), data)
    
    print(pd1, split = c(1, 1, 1, 3), more = TRUE)
    print(pd2, split = c(1, 2, 1, 3), more = TRUE)
    print(pd1, split = c(1, 3, 1, 3))
    

    【讨论】:

      猜你喜欢
      • 2014-08-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多