Learn R Programming

DVHmetrics (version 0.4.2)

saveDVH: 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.

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.

Details

This is a wrapper for ggsave.

See Also

ggsave, showDVH, showConstraint

Examples

Run this code
# NOT RUN {
res <- showDVH(dataMZ, byPat=TRUE, structure=c("HEART", "AMYOCL"))
# }
# NOT RUN {
saveDVH(res, "out.pdf")
# }

Run the code above in your browser using DataLab