我在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))
这个类似的:
xyplot(remove_SMO ~ B, groups = E,
type="a",
ylab="Remoção de óleo (%)",
xlab = "Temperatura",
auto.key = list(space = "right", points = FALSE, lines = TRUE))
如何使用lattice
对这两个交互图进行分组?
了解如何编辑lattice
中开发的图表的好材料?请注意,多个绘图的split
命令有助于但不理想,并且粉红色和蓝色线条的图例定位存在差异。 " facet_wrap" |
与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"}
]
}