surv_extract_plot: Plot the output of a 'surv_extract'

View source: R/surv_plot.r

surv_extract_plotR Documentation

Plot the output of a 'surv_extract'

Description

This function can plot any of the columns of the output of 'surv_extract'

Usage

surv_extract_plot(
  data,
  color = "id",
  legendgroup = "id",
  type = c("wx", "surv")
)

Arguments

data

the result of a 'surv_extract' call.

color

name of the column to be used as color.

legendgroup

name of the column to agregate the legend. Used only when ploting more than one curve with 'plotly::subplot'.

type

should the wx or the surv column be plotted?

Value

a plotly of the requested column versus time.


vitorcapdeville/survtools documentation built on Feb. 12, 2023, 12:01 p.m.