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

ggforest function error (invalid “recordedplot”) in Rj editor #935

Open
yoshi-vet opened this issue Sep 3, 2020 · 10 comments
Open

ggforest function error (invalid “recordedplot”) in Rj editor #935

yoshi-vet opened this issue Sep 3, 2020 · 10 comments

Comments

@yoshi-vet
Copy link

Thank you for the teams of jamovi developers!

I’m having trouble with ggforest function in Rj-editor.

In my Mac environment, a calculation is not finished and forestplot is not drawn.(fig.1)
The forestplot is displayed without a problem by the same cord in R.

In Windows environment, an error code [invalid “recordedplot”: INTEGER() can only be applied to a ‘integer’, not a ‘NULL’] is displayed.(fig.2)

Jamovi 1.6.1
Rj-Editor 1.1.0
R version 4.0.2 (2020-06-22)
Jmv 1.2.23
Jmvconnect 1.2.18
Jmvcore 1.2.23

MacOS 10.15.6(19G2021)
(Windows 10 version 1909(build 18363.1049))

Could you help me?

kidney.omv.zip
fig 1_ggforest_error_Mac
fig 2_ggforest_error_Win

@jonathon-love
Copy link
Member

hi,

thanks for reporting. could you see if this works in jamovi 1.2.27?

with thanks

@yoshi-vet
Copy link
Author

Hi! Jonathon!
Thank you for quick reply!

I tried Jamovi 1.2.27, an error code [This analysis has terminated, likely due to hitting a resource limit.] is displayed.

Thanks!
fig 3_ggforest_error_by1 2 27

@yoshi-vet
Copy link
Author

When I use the deathwatch and jsurvival module, forest plot can draw well, that I wonder.
I’d like to use ggforest function with Rj editor, as use ties option=“exact”.

with thanks

fig 4_forestplot by deathwatch and jsurvival

@sbalci
Copy link

sbalci commented Sep 3, 2020

I’d like to use ggforest function with Rj editor, as use ties option=“exact”.

Would you please send me the arguments you would like to use in ggforest. I can add them as options in the user interface.
Best wishes.

@yoshi-vet
Copy link
Author

Thanks! sbalci.

jsurvival module is very useful and I really appreciate you!

I would like to use coxph function to calculate hazard ratio, and use ggforest function to figure out it by forest plot.

In Multivariate Survival Analysis, I would like to be able to use "breslow" or "efron" or "exact" method as the “ties” argument of the coxph function by dropdown list.
Then, the result should be reflected to forest plot.

jsurvival may use “efron” method as the default option of coxph function.
SAS user and SPSS user may use “breslow” method, I usually use “exact” method.

Best regards,

@yoshi-vet
Copy link
Author

Hi,

I tried it various combinations.

(Jamovi 1.6.1 + R4.0.2 -> does not work)
(Jamovi 1.2.27 + R4.0.2 -> does not work)

Jamovi 1.6.3 + R 4.0.2 -> does not work
Jamovi 1.6.3 + R 3.6.3 -> does not work
Jamovi 1.2.27 + R 3.6.3 -> It works well !!(fig.5)

The same phenomenon seems to be generated in ggadjustedcurves function.
(or other survminer’s plot function…?)

Will this result be helpful?

Thanks!
fig 4_jamovi1 2 27-R3 6 3

@jonathon-love
Copy link
Member

thanks yoshi, that is helpful.

@yoshi-vet
Copy link
Author

I updated survival package (3.2-5 to 3.2-7) and tried it again afterwards.

On Windows 10 environment (Jamovi 1.6.3 + R 4.0.2), it works well.
However, on Mac environment (Jamovi 1.6.3 + R 4.0.2), it does not work yet...

Is this a problem of the survival package?
or Mac environment?

Sorry for the confusion.

thanks.

@jonathon-love
Copy link
Member

i'm not entirely sure ...

@yoshi-vet
Copy link
Author

I update jamovi 1.6.18 and R 4.0.4, it works well ! (fig.6)
But, there is still the problem not to be able to draw two or more graphs.(fig.7)
(jamovi 1.2.27 + R 3.6.3, can draw plural graphs.)

Anyway, thank you for Jonathon and the teams of jamovi developers!
fig 6_one_graph
two_graph

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

No branches or pull requests

3 participants