showMeanDVH {DVHmetrics} | R Documentation |
Show average dose volume histograms
Description
Displays average dose volume histograms grouped by patients or structures.
Usage
showMeanDVH(x, byPat=TRUE, patID=NULL, structure=NULL,
rel=TRUE, guessX=TRUE, thresh=1, show=TRUE, fixed=TRUE,
showSD=TRUE, color=TRUE, facet=TRUE)
Arguments
x |
A data frame as returned by getMeanDVH or a list of such data frames.
|
byPat |
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.
|
patID |
character vector. Show diagram for these patients only. If missing, all patients are shown. Can be a regular expression with fixed=FALSE , see regex .
|
structure |
character vector. Show diagram for these structures only. If missing, all structures are shown. Can be a regular expression with fixed=FALSE , see regex .
|
rel |
logical . Show relative volume?
|
guessX |
logical . Try to clip the x-axis for better visibility of main DVH range?
|
thresh |
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.
|
show |
logical . If TRUE , diagrams are shown, if FALSE diagrams are not shown - only ggplot diagram objects are silently returned.
|
fixed |
logical . Use fixed=FALSE for regular expression matching of patID and structure .
|
showSD |
logical . If TRUE , diagram shows shaded areas for point-wise 1-standard deviation and 2-standard deviations around this mean. See details.
|
color |
logical . If TRUE , diagram uses color to distinguish groups. If FALSE , colors are greyscale, and line types are used to distinguish groups.
|
facet |
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.
|
Details
TODO
Value
Silently returns a ggplot
diagram object, or - when multiple diagrams are constructed - a list of ggplot
diagram objects.
See Also
ggplot
,
showDVH
,
getMeanDVH
Examples
# mean DVH for HEART and AMYOCL averaged over patients
res <- getMeanDVH(dataMZ, byPat=FALSE, structure=c("HEART", "AMYOCL"))
showMeanDVH(res)
[Package
DVHmetrics version 0.4.2
Index]