autoplot_surv: Plot line plot based on a survival or time to event analysis

Description Usage Arguments Value Examples

View source: R/autoplot.R

Description

Plot line plot based on a survival or time to event analysis

Usage

1

Arguments

x

tidy tibble from broom

Value

ggplot object

Examples

1
2
3
4
5
6
7
8
library(survival)
library(magrittr)
library(dplyr)
library(ggplot2)
library(broom)
survival::survfit(Surv(time, status) ~ sex, data = lung)%>%
  tidy() %>%
  autoplot_surv()

bailliem/visRam documentation built on Feb. 2, 2020, 12:04 a.m.