C W
2012-Aug-22 19:53 UTC
[R] plotting Kaplan Meier using ggplot2 returns class function error
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 looked around seems like it's a common problem, but haven't found a solution. Thanks, Mike [[alternative HTML version deleted]]
David Winsemius
2012-Aug-22 20:13 UTC
[R] plotting Kaplan Meier using ggplot2 returns class function error
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 how to deal with data of class function > > I looked around seems like it's a common problem, but haven't found a > solution.You should read the comments on that blog page. That question was already posed. -- David Winsemius, MD Alameda, CA, USA