Learn R Programming

SurvivalTests (version 1.0)

plot.Sdescribe: 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 Sdescribe
plot(x, ylim = NULL, xlab = NULL, ylab = NULL, title = NULL, width = NULL, ...)

Value

No return value, called for side effects

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.

Author

Osman Dag

Examples

Run this code

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)
# \donttest{
out <- Sdescribe(time~age+status, lung)

plot(out, ylim = c(0,500))
plot(out)
# }

Run the code above in your browser using DataLab