performance::check_model() | Error: 'Plots' window is too small

I was trying to use performance::check_model() this function and I got the following error,

Error: The RStudio 'Plots' window is too small to show this set of plots.
Please make the window larger.

I have tried to run dev.off() a few times, and then try to plot again. Also to Run options(device = "RStudioGD")

I don't think data matters here. I was trying to use with a lme4.

m1 <- lmer (insuline ~ insuline_cov + time + time:group + vo2_cov + sbp_cov
+ age + (1 | Participante), data = dat_long0 )
summary(m1)
confint(m1)
performance::check_model(m1)

System Information:

2022.07.2 Build 576 (desktop)
R version 4.2.0 (2022-04-22 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 8.1 x64 (build 9600)


Referred here from support.rstudio.com

Make the plot window on the screen larger. Assuming the default RStudio layout, place the cursor on the left margin of the plot window and drag it to the left.

Thank you. Forgot to say I have tried that too - did not work.

Weird. What happens if you try writing directly to disc with png()?

I am afraid I am not sure of how to do that. -.-

Have a look at ?png.

Basically you just put the plot command between

png("some.file.name.png")
dev()

Here is a quick example using "ggplot2"

library(ggplot2)
dat1  <- data.frame(xx = 1:5, yy = 5:1)

png("myplot.png")

ggplot(dat1, aes(xx, yy)) + geom_point() +
  ggtitle("A plot")

dev.off()

Run this and you should get a file , myplot.png in your working directory.

I think you want performance::check_model(m1) in there but I am not familiar with the package.

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.