1

I am using base plot and the "effects" package together to plot an interaction. While I can change the xlab and the ylab, I was wondering how I can change the title of the facet wrap (which defaults to the code I use for it in my R script). Moreover, I would like to avoid the suboptinal option of going back and renaming the variable earlier on in the analysis.

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.

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"
)

Thanks for the help!

zx8754
  • 52,746
  • 12
  • 114
  • 209
Sharif Amlani
  • 1,138
  • 1
  • 11
  • 25

0 Answers0