Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Input as list for plot_summs #64

Closed
zx8754 opened this issue Jun 4, 2019 · 1 comment
Closed

Input as list for plot_summs #64

zx8754 opened this issue Jun 4, 2019 · 1 comment

Comments

@zx8754
Copy link

zx8754 commented Jun 4, 2019

Relevant SO post:

library(jtools)

# example models
tmp <- list(m1 = lm(mpg ~ cyl + disp, data = mtcars),
            m2 = lm(mpg ~ cyl + hp, data = mtcars))

This works:

plot_summs(tmp$m1, tmp$m2)

Ideally, should work with a list input, as:

plot_summs(tmp)

Workaround suggested at SO:

do.call(plot_summs, setNames(tmp, NULL))
@jacob-long
Copy link
Owner

Thanks for letting me know about this. I had planned to allow lists as input, had done it for another function, and didn't realize I hadn't for this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants