search for: plotclip

Displaying 1 result from an estimated 1 matches for "plotclip".

Did you mean: plotci
2020 Sep 30
0
2 KM curves on the same plot
...t; wrote: > > Hi Jim, > > I found out why clip() does not work with lines(survfit.object)! > > If you look at code of function survival:::lines.survfit, in th middle of the code: > > do.clip <- getOption("plot.survfit") > if (!is.null(xx <- do.clip$plotclip)) > clip(xx[1], xx[2], xx[3], xx[4]) > > This will reset the clipping to the defualt plot region! > > So I just comment out the last 2 lines of the above 3 lines, and created a customized lines2 function. Now it works! > > It's fun to learn clip(). > > Thanks,...