JenniNiku / gllvm

Generalized Linear Latent Variable Models
https://jenniniku.github.io/gllvm/
48 stars 19 forks source link

Points' colors meaning in residuals vs linear predictors #121

Closed zohrazahir closed 1 year ago

zohrazahir commented 1 year ago

Hello,

I am wondering if anyone knows what colors in the residuals vs linear predictor plot signify.

Here is the code for plotting:

par(mfrow = c(1, 2))
plot(fit_gllvm, which = 1:2, n.plot = 100)

When I add var.colors to the above code, it changes all the points to one color (for example, color 7, which is yellow)


par(mfrow = c(1, 2))
plot(fit_gllvm, which = 1:2, n.plot = 100, var.colors = 7)

without var colors with var colors

Also, can you help me interpret the below graph? (It shows the residuals vs linear predictor based on Poisson and negative binomial:

Poisson vs NB

Thank you, Z.

BertvanderVeen commented 1 year ago

Thanks. I will respond to your question, but in the discussion forum as this is not a bug :)