plotmRECIST: To plot mRECIST values

View source: R/plot_mRECIST.R

plotmRECISTR Documentation

To plot mRECIST values

Description

plotmRECIST plots the mRECIST matrix obtained from summarizeResponse.

Usage

plotmRECIST(
  mat,
  control.name = NA,
  control.col = "#238b45",
  drug.col = "black",
  colPalette = NULL,
  name = "Drug & Models",
  sort = TRUE,
  row_fontsize = 12,
  col_fontsize = 12,
  legend_title = "Response",
  draw_plot = TRUE
)

Arguments

mat

The mRECIST matrix where rows are drugs and columns are patients.

control.name

Name of the control.

control.col

Color of the control.

drug.col

Color of the drug names.

colPalette

Color palette for mRECIST values.

name

Title of the plot.

sort

If matrix should be sorted before plotting.

row_fontsize

Size of the row name font.

col_fontsize

Size of the column name font.

legend_title

Title for the legend.

draw_plot

Default TRUE will plot the figure. If FALSE, return an object.

Value

mRECIST plot.

Examples

data(brca)
brca.mr <- summarizeResponse(brca, response.measure = "mRECIST", group.by="patient.id")
plotmRECIST(brca.mr, control.name = "untreated")

bhklab/Xeva documentation built on Nov. 12, 2022, 5:38 a.m.