plot.Sdescribe {SurvivalTests} | R Documentation |
Error Bars with Means and Confidence Limits
Description
plot.Sdescribe
produce error bars with means and confidence limits of the given grouped values.
Usage
## S3 method for class 'Sdescribe'
plot(x, ylim = NULL, xlab = NULL, ylab = NULL, title = NULL, width = NULL, ...)
Arguments
x |
a Sdescribe object. |
ylim |
a limit for y axes. |
xlab |
a label for the x axis. |
ylab |
a label for the y axis. |
title |
a main title for the plot. |
width |
the little lines at the tops and bottoms of the error bars (defaults to 0.80). |
... |
additional arguments. |
Value
No return value, called for side effects
Author(s)
Osman Dag
Examples
library(survival)
lung$status <- ifelse(lung$status == 2, 1, 0)
lung$age <- arules::discretize(lung$age, breaks = 3, labels = c("Low","Medium","High"))
library(SurvivalTests)
out <- Sdescribe(time~age+status, lung)
plot(out, ylim = c(0,500))
plot(out)
[Package SurvivalTests version 1.0 Index]