Learn R Programming

hadron (version 3.1.2)

tikz.init: tikz.init

Description

initialize and finalize a tikzDevice and carry out optional post-processing

Usage

tikz.init(basename, standAlone = TRUE, engine, ...)

Arguments

basename

the base of the files which will be used by tikzDevice, e.g. "basename" -> "basename.pdf", etc.

standAlone

A logical value indicating whether the output file should be suitable for direct processing by LaTeX. A value of FALSE indicates that the file is intended for inclusion in a larger document.

engine

used to specify the LaTex engine. If missing, the standard engine of tikz is used.

...

optional arguments which are passed to tikz, see tikzDevice::tikz

Value

tikz.init returns a list with character vector members, $pdf, $tex, $aux $log containing the corresponding filenames

Details

Convenience Functions for tikzDevice

See Also

Other tikzutils: tikz.finalize()

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
tikzfiles <- tikz.init("plotname",width=3,height=4)
# }
# NOT RUN {
plot(x=c(1:3), y=c(1:3)^2, xlab="$x$", ylab="$y$")
# }
# NOT RUN {
tikz.finalize(tikzfiles=tikzfiles, clean=TRUE)
# }
# NOT RUN {
file.remove("plotname.pdf")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab