plot-dvhmatrix-ANY-method: method for plotting 'dvhmatrix' class objects

Description Usage Arguments Details Examples

Description

This method overrides the default method plot and handles the plots of dvhmatrix class objects.

Usage

1
2
3
4
5
6
## S4 method for signature 'dvhmatrix,ANY'
plot(x, elements = NULL, enhance = NULL,
  mean.dvh = FALSE, median.dvh = FALSE, mean.median.alone = FALSE,
  el.color = "black", en.color = "red", mean.color = "blue",
  median.color = "red", lwd = 1, C.I.dvh = FALSE, C.I.dvh.width = 0.95,
  C.I.dvh.range = FALSE, n.boot = 2000, ...)

Arguments

x

The dvhmatrix object to be plotted.

elements

A vector containing the indeces of the DVHs to be plotted.

enhance

A vector containing the indeces of the DVHs curves to be enhanced in the plot by changing de default color.

mean.dvh

A logical value, if TRUE the mean dvh is plotted.

median.dvh

A logical value, if TRUE the median dvh is plotted.

mean.median.alone

A logical value, if TRUE only the mean and/or median DVH(s) is/are plotted. Mean or median DVHs are plotted according the values in mean.dvh and median.dvh.

el.color

The color for plotting DVHs. The default value is "black".

en.color

The color for plotting the enhanced DVHs. The default value is "red".

mean.color

The color for the mean dvh plot. The default value is "blue".

median.color

The color for the median dvh plot. The default value is "red".

lwd

The size of the lines in the plot. Default value is 1.

C.I.dvh

Plot the confidence interval of mean and/or median DVH(s) according the values in mean.dvh and median.dvh.

C.I.dvh.width

The width of confidence interval of mean, median DVH(s) and overall dvh series.

C.I.dvh.range

Plot the confidence interval of the whole DVHs series according the value in C.I.dvh.width.

n.boot

The number of bootstrap repetitions for calculating the confidence interval of mean and median DVHs.

...

Other parameters to be passed to plot function.

Details

The dvh are stored in the slot dvh of a dvhmatrix class object. Of course it is possible for7 users to use these matrices for plotting the dvhs considering that the structure of the matrix is referenced under dvhmatrix-class. In order to simplify the plotting operations this method has been coded allowing users to automatically obtain some useful features in the graphs, as the mean and median dvh curves, and the confidence intervals for mean, median and overall dvh matrix. The confidence intervals of mean and median are calculated by bootstrapping the whole dvhmatrix and calculating a given number of mean and median dvh values that finally are reduced by using a quantile function to create the final plot.

Examples

1
2
3
4
## create a dvhmatrix object
b <- DVH.generate(dvh.number = 100, dvh.type = "cumulative", vol.distr = "absolute")
plot(x = b, mean.dvh = TRUE, median.dvh = TRUE, mean.median.alone = TRUE, 
     C.I.dvh = TRUE, C.I.dvh.range = TRUE, C.I.dvh.width = .67, lwd = 2)

robertogattabs/RadAgent documentation built on June 30, 2018, 12:02 a.m.