Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change Confidence Interval in interact_plot #73

Open
JDenn0514 opened this issue Jul 25, 2023 · 1 comment
Open

Change Confidence Interval in interact_plot #73

JDenn0514 opened this issue Jul 25, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@JDenn0514
Copy link

JDenn0514 commented Jul 25, 2023

I am using interact_plot to create interaction plots and want to change the size of the confidence interval. However, int.width is not changing the width of the confidence intervals. The images below show what is happening.

Looking below, we can see how the graph looks with int.width = 0.95
image

In the next image, we can see when I set the int.width = 0.4
image

In addition, here is the code used to create the graphs in the images.

# create the model object
model <- lm(mpg ~ cyl * hp, data = mtcars)

# create the interaction plot used in the first image, 95% confidence interval
interact_plot(model, pred = cyl, modx = hp, interval = TRUE, int.width = 0.95)

# create the interaction plot used in the second image, 40% confidence interval
interact_plot(model, pred = cyl, modx = hp, interval = TRUE, int.width = 0.4)
@JDenn0514 JDenn0514 added the bug Something isn't working label Jul 25, 2023
@SarBearSchwartz
Copy link

I am having the same issue. I have been successfully able to use the int.width option in the past, but it doesn’t seem to be working now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants