Displays average dose volume histograms grouped by patients or structures.
showMeanDVH(x, byPat=TRUE, patID=NULL, structure=NULL,
rel=TRUE, guessX=TRUE, thresh=1, show=TRUE, fixed=TRUE,
showSD=TRUE, color=TRUE, facet=TRUE)Silently returns a ggplot diagram object, or - when multiple diagrams are constructed - a list of ggplot diagram objects.
A data frame as returned by getMeanDVH or a list of such data frames.
logical. Relevant if multiple DVHs are given. If x has class DVHLstLst: byPat=TRUE means that one diagram shows DVHs from one patient with multiple structures. byPat=FALSE means that one diagram shows DVHs for one structure from multiple patients.
character vector. Show diagram for these patients only. If missing, all patients are shown. Can be a regular expression with fixed=FALSE, see regex.
character vector. Show diagram for these structures only. If missing, all structures are shown. Can be a regular expression with fixed=FALSE, see regex.
logical. Show relative volume?
logical. Try to clip the x-axis for better visibility of main DVH range?
numeric value. Relative volume threshold used with guessX=TRUE. Clip x-axis (+10%) such that the "highest" DVH is cut off at this relative volume.
logical. If TRUE, diagrams are shown, if FALSE diagrams are not shown - only ggplot diagram objects are silently returned.
logical. Use fixed=FALSE for regular expression matching of patID and structure.
logical. If TRUE, diagram shows shaded areas for point-wise 1-standard deviation and 2-standard deviations around this mean. See details.
logical. If TRUE, diagram uses color to distinguish groups. If FALSE, colors are greyscale, and line types are used to distinguish groups.
logical. If TRUE, different structures (for byPat=FALSE or different patients (for byPat=TRUE go into separate panels using facet_grid. If FALSE, everything is shown in the same panel.
TODO
ggplot,
showDVH,
getMeanDVH
# mean DVH for HEART and AMYOCL averaged over patients
res <- getMeanDVH(dataMZ, byPat=FALSE, structure=c("HEART", "AMYOCL"))
showMeanDVH(res)
Run the code above in your browser using DataLab