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, 2012 at 4:13 PM, David Winsemius <dwinsemius@comcast.net>wrote:

>
> 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/<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<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
>
>

	[[alternative HTML version deleted]]


