自动打印,标记和图像保存

问题描述 投票:0回答:1

我写了一些绘图功能。 (有关“ Schritt1(Int)”的示例结果,请参见图1)enter image description here

现在我的问题:

  1. 如何在图片中添加'y'的变量名(在这种情况下为'Int')而不是'y的均值?

  2. 如何将图作为功能的一部分保存为图片?

  3. 如果2.)有效,如何使变量名成为图像名称的一部分?

  4. 记住,我想用一个功能创建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)
```


r plot statistics
1个回答
0
投票

要获取可以使用的y的变量名称

© www.soinside.com 2019 - 2024. All rights reserved.