leifeld/texreg

custom.model.names not working in plotreg CRAN version

Periloux opened this issue · 7 comments

I have attempted to change the model names using the custom.model.names call. It would work just fine in the past, but there must be something up with the latest update.

Thanks in advance.

Hi Periloux! Can you provide a minimal self-contained example? That should allow me to figure out what is causing this behavior. Thanks a lot in advance! Philip

I have noticed that the custom.model.names function works just fine for screenreg and texreg. However, I believe the problem comes into play when using the new facet layout for plotreg (compared to the simpler output in previous iterations).


summary(model1.b<-glm.nb(Total_adopt ~ Protests_first_year

  •                   ,data = state))
    

Call:
glm.nb(formula = Total_adopt ~ Protests_first_year, data = state,
init.theta = 4.62227604, link = log)

plotreg(model1.b,ci.inner = 0.9,#reorder.coef = c(2:7,1),

  •     custom.model.name = c("policy diffusion"))
    

Model: bars denote 0.5 (inner) resp. 0.95 (outer) confidence intervals (computed from standard errors).

Example.pdf

Sorry, no... I meant to circle the "Model 1" in the facet heading before sending the reply. In previous iterations, the model name was free standing. In the latest update, it has been switched to the ggplot output.

@Periloux I see. There is something not working apparently.
@leifeld If you allow me I can take care of this one.

@leifeld in -GitHub version 1.26.25 it was definitely working since I used it (I still have the plots). Hence, it must have broke down later.

Thanks for providing the example. Sure, please go ahead and fix it! Thanks both!

Thanks for the quick response