0

I am new to R, and I have some problems creating a QQ-plot using the "DHARMa" package. Firstly, I have used the glm function to perform a regression and to test goodness of fit I want to present some further tests, among them the QQ plot. I have used the following code:

fittedmodel <- glm(target ~ callable_bond_debt + non_callable_debt, family = "binomial",
                   data = my_data)

simulationoutput <- simulateResiduals(fittedModel = fittedmodel, n = 1000, plot = TRUE)
plot(simulationoutput) 

However, the output I get is not interpretable due to misalignment of the text in the plot:

enter image description here

Does anyone know how to fix the issue with the text?

I have not performed any further tests.

  • 1
    You probably tried to adjust the RStudio window and noticed, that the appearance always changes. Think that window as a preview window and use another device. See here: https://stackoverflow.com/q/7144118/6574038 Use different width and height arguments. – jay.sf Nov 28 '22 at 12:46

0 Answers0