showDVH {DVHmetrics} | R Documentation |
Display dose volume histograms
Description
Displays dose volume histograms: Either one diagram per patient - including multiple structures. Or one diagram per structure - including multiple patients.
Usage
showDVH(x, cumul=TRUE, byPat=TRUE, patID=NULL, structure=NULL,
rel=TRUE, guessX=TRUE, guessY=TRUE, thresh=1, addMSD=FALSE,
show=TRUE, visible=FALSE, fixed=TRUE)
## S3 method for class 'DVHs'
showDVH(x, cumul=TRUE, byPat=TRUE, patID=NULL, structure=NULL,
rel=TRUE, guessX=TRUE, guessY=TRUE, thresh=1, addMSD=FALSE,
show=TRUE, visible=FALSE, fixed=TRUE)
## S3 method for class 'DVHLst'
showDVH(x, cumul=TRUE, byPat=TRUE, patID=NULL, structure=NULL,
rel=TRUE, guessX=TRUE, guessY=TRUE, thresh=1, addMSD=FALSE,
show=TRUE, visible=FALSE, fixed=TRUE)
## S3 method for class 'DVHLstLst'
showDVH(x, cumul=TRUE, byPat=TRUE, patID=NULL, structure=NULL,
rel=TRUE, guessX=TRUE, guessY=TRUE, thresh=1, addMSD=FALSE,
show=TRUE, visible=FALSE, fixed=TRUE)
Arguments
x |
A single DVH (object of class |
cumul |
|
byPat |
|
patID |
|
structure |
|
rel |
|
guessX |
|
guessY |
|
thresh |
|
addMSD |
|
show |
|
visible |
|
fixed |
|
Details
If multiple diagrams are produced, they are shown in the same graphics device. If interactive inspection is required, make sure you use an R development environment that saves previous diagrams and allows navigating between them - e.g., RStudio or OpenAnalytics Architect.
For addMSD=TRUE
, the number of DVH nodes (dose values) is reduced by 1/3 of the maximum number of nodes in x
. Before calculating the point-wise mean and SD, DVHs in x
are first linearly interpolated using the same set of nodes.
Value
Silently returns a ggplot
diagram object, or - when multiple diagrams are constructed - a list of ggplot
diagram objects.
See Also
ggplot
,
readDVH
,
saveDVH
,
getMeanDVH
Examples
showDVH(dataMZ, byPat=TRUE, structure=c("HEART", "AMYOCL"))
# matches patients P123 and P234
showDVH(dataMZ, byPat=FALSE, patID="23", fixed=FALSE)