如何在效果图中更改调节变量的标题?

时间:2017-05-21 08:54:02

标签: r plot graph interaction

我正在使用基本情节和“效果”包一起绘制交互。虽然我可以更改xlab和ylab,但我想知道如何更改facet包的标题(默认为我在R脚本中使用的代码)。此外,我想避免在分析中早先返回并重命名变量的suboptinal选项。

这是情节。您可以看到调节变量是我在R中分配的代码。我想重命名它。

Here is the plot. You can see that the moderating variable is the code I assigned it in R. I would like to rename it.

plot(
  effect("incaccomp_pc09.recode * Congress.recode", 
         Logit.LegA.Interact
  ), 
  xlab = "Congressional Approval",
  ylab = "Probability of Voting for a INC",
  main = "Interaction Plot of Accomplish  * Cong Approval"
)

感谢您的帮助!

0 个答案:

没有答案