saveGraph: Saves standard graphs for publication either as EPS, PNG with...

Description Usage Arguments Examples

View source: R/networkUtils.R

Description

Saves standard graphs for publication either as EPS, PNG with 300dpi or PDF Allows specific maximum dimensions with an optional target aspect ratio. If no aspect ratio supplied then plot will be shaped to occupy whole area

Usage

1
saveGraph(graph, filename, maxWidth, maxHeight, engine = "dot")

Arguments

graph

a DiagrammeR::graph object

filename

base of target filename (excuding extension).

maxWidth

maximum width in inches

maxHeight

maximum height in inches

Examples

1
2
3
4
5
setwd(tempdir())
library(ggplot2)
library(standardPrintOutput)
ggplot(mtcars, aes(mpg, wt, colour=as.factor(cyl))) + geom_point()
saveFigure(filename="the_filename",maxWidth=4,maxHeight=4)

terminological/standard-print-output documentation built on July 18, 2021, 9:29 a.m.