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

A warning message from changing the text_size #22

Closed
yuemolin opened this issue Apr 19, 2020 · 5 comments
Closed

A warning message from changing the text_size #22

yuemolin opened this issue Apr 19, 2020 · 5 comments

Comments

@yuemolin
Copy link

Hi NikNakk,
Thank you for your wonderful package!

A Warning message showed up when I trying to modify the text_size in format_options:

'Warning: Ignoring unknown aesthetics: x'

I'm not sure am I doing something wrong? I'm hoping you can help me with this, thanks!
Here, I attached my code:

forest_model(model1,factor_separate_line = T,
             format_options = list(colour= "black", shape = 15, text_size = 20,fontsize=5, banded = T),
             theme = theme_forest())

BTW, I'm also wondering is there a way to modify the size of the point estimates?

@ShixiangWang
Copy link
Contributor

Could you show your full comands with a minimal dataset?

@yuemolin
Copy link
Author

yuemolin commented May 9, 2020

My code is as below:

Cox.ppi = coxph(Surv(N, O) ~ A+B+C+D+E+G+H+I+J+K+L,
                weights = M, data = data)

library("forestmodel")
forest_model(Cox.ppi,factor_separate_line = T,
             format_options = list(colour= "black", shape = 15, text_size = 10, banded = T),
             theme = theme_forest())

And the data is attached.
Thanks!
test.txt

@ShixiangWang
Copy link
Contributor

@yuemolin Please try:

data = read.csv("~/Downloads/test.txt")
library(survival)

Cox.ppi = coxph(Surv(N, O) ~ A+B+C+D+E+G+H+I+J+K+L,
                weights = M, data = data)

#library("forestmodel")
forest_model(Cox.ppi,
             format_options = forest_model_format_options(text_size = 3))

@yuemolin
Copy link
Author

got it! Thank you so much

@ShixiangWang
Copy link
Contributor

You are welcome, please close this issue if you have no further problem

@NikNakk NikNakk closed this as completed Jul 17, 2020
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