saveDVH: Save DVH diagram to file

Description Usage Arguments Details Value See Also Examples

View source: R/save.R

Description

Saves one or multiple DVH diagrams to file.

Usage

1
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

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

## End(Not run)

DVHmetrics documentation built on April 16, 2021, 9:06 a.m.