prep_beam_plot function

Prepare for BEAM plotting

Prepare for BEAM plotting

Add a "plot" column to beam.specs, which includes string of plot commands.

prep_beam_plot(beam.data, beam.specs)

Arguments

  • beam.data: Result of prep.beam.data
  • beam.specs: A data.frame of strings with columns name, mtx, mdl (string with R model with mtx.row)

Returns

An updated beam.specs object that includes the column "plot"

Examples

data(clinf) data(omicdat) data(omicann) data(setdat) test.beam.data <- prep_beam_data(main.data=clinf, mtx.data=omicdat, mtx.anns=omicann, set.data=setdat, set.anns=NULL, n.boot=10, seed=123) specs <- prep_beam_specs(beam.data=test.beam.data, endpts=c("MRD29", "EFS", "OS"), firth=TRUE) plot.specs <- prep_beam_plot(beam.data=test.beam.data, beam.specs=specs)