我写了一些绘图功能。 (有关“ Schritt1(Int)”的示例结果,请参见图1)
现在我的问题:
如何在图片中添加'y'的变量名(在这种情况下为'Int')而不是'y的均值?
如何将图作为功能的一部分保存为图片?
如果2.)有效,如何使变量名成为图像名称的一部分?
记住,我想用一个功能创建2个图和2张图片。如果那太难了,我只做两个功能。
感谢您提出的任何问题的解决方案和建议。
Schritt1 <- function(y) {
interaction.plot(x$`Single Posture`, x$Sex, y)
interaction.plot(x$Person, x$Pos, y)
}
Schritt1 (Int)
Schritt1 (Con)
Schritt1 (Car)
Schritt1 (Pow)
Schritt1(CoP)
Schritt1(Com)
Schritt1(Eth)
Schritt1(Tea)
Schritt1(Adv)
Schritt1(EBD)
Schritt1(Ask)
Schritt1(PP)
Schritt1(PC)
Schritt1(Der)
Schritt1(Ser)
Schritt1(Med)
Schritt1(Lea)
```
要获取可以使用的y的变量名称