Re: [R] consolidate three function into one

2018-01-15 Thread Bert Gunter
know a good book or website for guidance of R > function, please let me know. > > > > Thanks, > > > > Ding > > > > *From:* Bert Gunter [mailto:bgunter.4...@gmail.com] > *Sent:* Monday, January 15, 2018 10:11 AM > *To:* Ding, Yuan Chun > *Cc:* Richar

Re: [R] consolidate three function into one

2018-01-15 Thread Ding, Yuan Chun
: Richard M. Heiberger ; r-help@r-project.org Subject: Re: [R] consolidate three function into one That is certainly OK, but you can also just use print(ggsurvplot(...)) as your final statement. out <- RFS( ...) would then return the ggsurvplot object *and* graph it. Any good R tutorial or a

Re: [R] consolidate three function into one

2018-01-15 Thread Bert Gunter
ot;bottom", > legend.title = "Tree Cluster", > legend.labs = legend.labs, > lty=1, lwd=3) > print(fig) > } > > -Original Message- > From: Richard M. Heiberger [ma

Re: [R] consolidate three function into one

2018-01-15 Thread Ding, Yuan Chun
, lty=1, lwd=3) print(fig) } -Original Message- From: Richard M. Heiberger [mailto:r...@temple.edu] Sent: Sunday, January 14, 2018 1:34 PM To: Ding, Yuan Chun Cc: Bert Gunter ; r-help@r-project.org Subject: Re: [R] consolidate

Re: [R] consolidate three function into one

2018-01-14 Thread Richard M. Heiberger
kslab = 14,font.legend =c(14,"plain","black"), > legend = "bottom", > legend.title = "Tree Cluster", > legend.labs = legend.labs, > lty=1, lwd=3) > } > >

Re: [R] consolidate three function into one

2018-01-14 Thread Ding, Yuan Chun
main = "Survival curve",pval = TRUE,font.x = 16,font.y = 16, font.tickslab = 14,font.legend =c(14,"plain","black"), legend = "bottom", legend.title = "Tree Cluster", legend.labs = legend.labs,

Re: [R] consolidate three function into one

2018-01-14 Thread Ding, Yuan Chun
. Thanks, Ding From: Bert Gunter [mailto:bgunter.4...@gmail.com] Sent: Sunday, January 14, 2018 9:50 AM To: Ding, Yuan Chun Subject: Re: [R] consolidate three function into one I have not looked at your code *at all*, so I am not sure what exactly you mean by "consolidate." Is this wh

Re: [R] consolidate three function into one

2018-01-14 Thread Ding, Yuan Chun
HI R users, I construct dendrogram tree and cut the tree into different clusters, then generate survival curves by the following three functions. All variables are included in an inputfile. Can you help me to consolidate the following three function into one functions? I thought about using