You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. Thanks for the wonderful package. It seems that interact_plot() has an issue concerning point.shape argument. When used as intended, with point.shape = TRUE, nothing happens. Unfortunately, I couldn't find an easy fix using ggplot2 as, I am guessing, the shape_arg in interactions:::plot_mod_continuous() affects line geom and not point geom.
library(interactions) # dev version devtools::install_github("jacob-long/interactions")
library(ggplot2)
fiti<- lm(mpg~hp*wt, data=mtcars)
# No point shapesinteractions::interact_plot(fiti, pred=hp, modx=wt,
plot.points=TRUE, point.shape=TRUE, point.alpha=0.6)
# Shape affects lines, but not pointsinteractions::interact_plot(fiti, pred=hp, modx=wt,
plot.points=TRUE, point.shape=TRUE, point.alpha=0.6) +
geom_point(aes(shape=modx_group)) +
scale_shape_manual(values= c(3, 16, 17))
Hi. Thanks for the wonderful package. It seems that
interact_plot()
has an issue concerningpoint.shape
argument. When used as intended, withpoint.shape = TRUE
, nothing happens. Unfortunately, I couldn't find an easy fix usingggplot2
as, I am guessing, theshape_arg
ininteractions:::plot_mod_continuous()
affects line geom and not point geom.Created on 2023-04-18 with reprex v2.0.2
The text was updated successfully, but these errors were encountered: