Re: [R] plotting Kaplan Meier using ggplot2 returns class function error

2012-08-22 Thread C W
Hi David, Yes, I looked through the comments. I have ran the blog version and the comment version from the blogger. The comment gives error: Error in ggkm(fit, timeby = 500) : attempt to apply non-function So, I chose to go back to blog and fix the class function error. Mike On Wed, Aug 22, 201

Re: [R] plotting Kaplan Meier using ggplot2 returns class function error

2012-08-22 Thread David Winsemius
On Aug 22, 2012, at 12:53 PM, C W wrote: Hi list I am running this ggplot2 R code: http://www.r-bloggers.com/an-enhanced-kaplan-meier-plot/ with its graphical output looks like this: http://statbandit.files.wordpress.com/2011/03/rstudio-v79384.pdf It gives me this error: ggplot2 doesn't know

[R] plotting Kaplan Meier using ggplot2 returns class function error

2012-08-22 Thread C W
Hi list I am running this ggplot2 R code: http://www.r-bloggers.com/an-enhanced-kaplan-meier-plot/ with its graphical output looks like this: http://statbandit.files.wordpress.com/2011/03/rstudio-v79384.pdf It gives me this error: ggplot2 doesn't know how to deal with data of class function I l