Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export(
calculate.overlap,
get.venn.partitions
)
importFrom("grDevices", "dev.off", "png", "svg", "tiff")
importFrom("grDevices", "dev.off", "png", "svg", "tiff", "pdf")
importFrom("stats", "aggregate", "setNames", "phyper")
importFrom("utils", "capture.output", "combn")
import(grid,
Expand Down
8 changes: 8 additions & 0 deletions R/venn.diagram.R
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,14 @@ stop('Invalid size of input object');
);
}

# PDF image type specified
else if('pdf' == imagetype) {
pdf(
file = filename,
height = height,
width = width
);
}
# Invalid imagetype specified
else {
flog.error("You have misspelled your 'imagetype', please try again",name="VennDiagramLogger")
Expand Down
2 changes: 1 addition & 1 deletion man/venn.diagram.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ venn.diagram(x, filename, height = 3000, width = 3000, resolution =
\item{height}{Integer giving the height of the output figure in units}
\item{width}{Integer giving the width of the output figure in units}
\item{resolution}{Resolution of the final figure in DPI}
\item{imagetype}{Specification of the image format (e.g. tiff, png or svg)}
\item{imagetype}{Specification of the image format: tiff, png, svg, pdf}
\item{units}{Size-units to use for the final figure}
\item{compression}{What compression algorithm should be applied to the final tiff}
\item{na}{Missing value handling method: "none", "stop", "remove"}
Expand Down