[R] controlling axes in plot.cuminc (cmprsk library)
arthur.allignol at fdm.uni-freiburg.de
Wed Dec 10 15:24:23 CET 2008
You could try to use the option xaxt = "n"
in plot.cuminc, instead of axes.
Hope that helps,
Amy Krambrink wrote:
> Dear R-help list members,
> I am trying to create my own axes when plotting a cumulative incidence
> curve using the plot.cuminc function in the CMPRSK library. The default
> x-axis places tick marks and labels at 0, 20, 40, 60, and 80 (my data has
> an upper limit of 96), whereas I want them at my own specified locations.
> Here is my example code:
> MYCUMINC <-
> As you can see, I have tried using the "axes=F" parameter that works for
> most plotting functions, but I get the following error message:
> Error in legend(wh, wh, legend = curvlab, col = color, lty = lty, :
> unused argument(s) (axes ...)
> Is there anyway I can get a customized x-axis when using the plot.cuminc
> function? I have searched online and R help manuals to no avail and would
> GREATLY appreciate your input. Please let me know if you need additional
> info from me.
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help