saveDVH: Save DVH diagram to file

View source: R/save.R

saveDVHR Documentation

Save DVH diagram to file

Description

Saves one or multiple DVH diagrams to file.

Usage

saveDVH(x, file="", ...)

Arguments

x

A single ggplot object or a list of multiple ggplot objects as returned by showDVH or showConstraint.

file

character. Path to file. The file-ending determines what kind of file is written, e.g., "filename.pdf" will write a pdf document, "filename.jpg" a JPEG image.

...

Further arguments passed to ggsave, e.g., width and height to determine the figure size.

Details

This is a wrapper for ggsave.

Value

If x is a list of ggplot objects, one file is written for each list component. If x is a single ggplot object, one file is written.

See Also

ggsave, showDVH, showConstraint

Examples

res <- showDVH(dataMZ, byPat=TRUE, structure=c("HEART", "AMYOCL"))
## Not run: 
saveDVH(res, "out.pdf")

## End(Not run)

dwoll/DVHmetrics documentation built on March 3, 2024, 9:28 a.m.