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

Cannot use grid arrange #102

Open
quantny opened this issue May 31, 2018 · 4 comments
Open

Cannot use grid arrange #102

quantny opened this issue May 31, 2018 · 4 comments

Comments

@quantny
Copy link

quantny commented May 31, 2018

Hello,

I am trying to use grid arrange so I can put the basic GOF plots all on the same page in a PDF file. However when I do this the plot title such as DV vs. PRED and number of observations disappear and revert to their references , @y vs. @x @run @ofv. Do you know how I can do this without losing this information.

Thanks

Justus

@bguiastr
Copy link
Collaborator

Similar to #91 and #93. It would be quite cumbersome to develop print methods for each existing external package. Instead I can suggest adding a function parse_keywords() to be used within functions like grid.arrange() as follows:

grid.arrange(
 parse_keywords(dv_vs_pred(xpdb)),
 parse_keywords(dv_vs_ipred(xpdb))
)

Would this be an acceptable solution?

@ananthha
Copy link

This solution does not seem to work: It gives an error: argument "xpdb" is missing, with no default
I tried the following code.
grid.arrange(
parse_title(dv_vs_pred(xpdb)),
parse_title(dv_vs_ipred(xpdb))
)

@bguiastr bguiastr added this to the xpose 0.5 milestone Jan 13, 2019
@jpryby
Copy link

jpryby commented Jul 2, 2024

There's a workaround for this. Since this issue is still open and comes up on search and doesn't seem to be resolved, posting it here.

Also works for ggpubr::ggarrange

grid.arrange(
    print(dv_vs_ipred(xpdb)),
    print(dv_vs_pred(xpdb)),
    ncol= 1
)

@jpryby
Copy link

jpryby commented Jul 2, 2024

This is related to #156 , and the workaround applies to both.

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

4 participants