Skip to content

Change Confidence Interval in interact_plot #73

Description

@JDenn0514

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions