如何使用R中的晶格制作两个交互图的小平面/面板?

时间:2018-06-03 03:12:34

标签: r graphics data-manipulation lattice

我在R中有这个代码:

xyplot(remove_SMO ~ A, groups = C,
   type="a",
   ylab="Remoção de óleo (%)",
   xlab = "pH",
   auto.key = list(space = "right", points = FALSE, lines = TRUE))

enter image description here

这个类似的:

xyplot(remove_SMO ~ B, groups = E,
   type="a",
   ylab="Remoção de óleo (%)",
   xlab = "Temperatura",
   auto.key = list(space = "right", points = FALSE, lines = TRUE))

enter image description here

如何使用lattice对这两个交互图进行分组?

enter image description here *图形的顺序无关紧要。

了解如何编辑lattice中开发的图表的好材料?请注意,多个绘图的split命令有助于但不理想,并且粉红色和蓝色线条的图例定位存在差异。 &#34; facet_wrap&#34; |if(!require("FrF2")) install.packages("FrF2") ; library(FrF2) if(!require("lattice")) install.packages("lattice") ; library(lattice) plan.person = FrF2(nfactors = 5, resolution = 5, replications = 2, randomize = FALSE, factor.names = list( A = c(3, 9), B = c(5, 30), C = c(0.05, 0.5), D = c(50, 350), E = c(100, 200) )) remove_SMO <- c(94.80, 23.40, 99.60, 38.00, 80.20, 27.00, 96.40, 60.00, 99.90, 9.10, 98.40, 37.10, 99.77, 51.70, 97.40, 58.00, 95.10, 25.00, 99.50, 39.10, 80.60, 28.00, 96.70, 61.20, 99.70, 10.00, 98.80, 37.40, 99.40, 52.00, 97.70, 58.40) plan.atualizado1 = add.response(design = plan.person, response = remove_SMO) attach(plan.atualizado1) 也不同,因为它极大地改变了美学。

我的示例代码。

{
"docs": [
  {"_id": "0", "integer": 0, "string": "0"},
  {"_id": "1", "integer": 1, "string": "1"},
  {"_id": "2", "integer": 2, "string": "2"}
  ]
}

0 个答案:

没有答案