Saves one or multiple DVH diagrams to file.
saveDVH(x, file="", ...)
A single ggplot
object or a list of multiple ggplot
objects as returned by showDVH
or showConstraint
.
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.
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.
This is a wrapper for ggsave
.
# 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