All Questions
Tagged with interaction plot
71 questions
0
votes
0
answers
95
views
Interaction plots with Fixest class models
I am working with a fixest class object (feols for OLS). I would like to plot interaction regression models. I like the interact_plot function from interactions package but it unfortunately does not ...
0
votes
2
answers
76
views
How to improve my plot for my interaction model [closed]
For a paper I want to include a graph of my interaction effect. I am not sure if and how I could improve it to make my interaction effect more visible. This is the R code:
plot_model4 <-
...
0
votes
2
answers
421
views
How do I produce a customizable interaction plot using the estimated marginal means? [closed]
I am currently looking at how the effect of two factors (temperature, species) on the duration of the egg stage in insects using a linear model and ANOVA analysis as follows:
## Model
type3.egg <- ...
0
votes
1
answer
635
views
Change lines types in interact_plot function
I use interact_plot to visualise the interaction effect of my numerical moderator (mean; +1SD; -1SD).
The problem is that the lines for mean and +1SD are dashed and for -1SD solid.
I would like to ...
1
vote
0
answers
177
views
How to add reference level(s) for interaction in R
My question is connected with this:
How to add a reference level for interaction in gtsummary and sjPlot
for which I did not get a solution that I am still in need.
The code is as follows:
set.seed(...
2
votes
1
answer
190
views
Is there a way to customise panel titles in an effects plot?
I have created the plot below to visualize interactions but I was wondering if I can customize the parts of the plot that say education = College, education = Graduate, education = High School.
Code:
#...
0
votes
1
answer
613
views
How to use plot_model to represent the coefficient of an interaction between a quadratic variable and a dummy in R?
I am trying to plot an interaction between a squared variable and a dummy from a multi-level logistic regression in R. Whilst I have no problem plotting these interactions with a non-quadratic ...
1
vote
1
answer
177
views
I would like to plot those graph from sjPlot::plot_model() in R on the same line
plot1<-plot_model(m3,type = "pred",terms =
c("anno","dimensione_capoluogo","rip."),
colors = c("grey80","grey60","black"),
...
0
votes
1
answer
961
views
Change order of factor levels in sjPlot interaction plot
I have the following kind of interaction plot made with sjPlot, showing an interaction between two categorical variables. The levels seem to appear alphabetically in the plot - however, I would like ...
0
votes
0
answers
112
views
How make a emmeans plot with interaction and many factors
I would like to make a emmeans plot taking all behaviour variable into account, which are columns, related to two other columns. The behaviour variables were create based on scale, from 1 to 10.
colA (...
1
vote
1
answer
2k
views
Modify color and font of emmip plot (emmeans package) in R
Hello :) I am desperately trying to change the colors and font of my emmip plot (plot from the emmeans package in R) but none of my codes are working.
Currently my code for the plot looks like this:
...
1
vote
1
answer
107
views
How to interact with plot using keyboard arros?
My interactive plot (topoplot) reacts to mouse signals, but how to make it reacting to keyboard signals?
Here is my code:
f = Figure()
xs = 1:1:193 #range(-30, 120, length = size(dat_e, 2))
sg = ...
1
vote
1
answer
1k
views
Interaction effect plot with CIs and emmeans contrast
I'm having trouble creating an interaction effect plot. There is probably something fairly simple I don't yet know how to do. I'm pretty new to R and ggplot. My reprex is below. Your insight is ...
1
vote
1
answer
2k
views
How do I change the mod2 labels in interact_plot()?
I have the following interaction:
data(iris)
View(iris)
reg <- lm(Sepal.Length ~ Sepal.Width*Petal.Width*Petal.Length, data = iris)
I want to create a plot:
library(interactions)
interact_plot(...
0
votes
1
answer
739
views
Plot three way interaction with 3d graph
I have fitted a binominal logistic glm with a three-way interaction between sex (male & female), tree cover including a quadratic term (1-100%), and the mean tree cover of an area (1-100%).
(case ...