Wrapper to silently create a plot

plot_invisible(text, outpath)

Arguments

text

character plotting code to be evaluated

outpath

file.path

Details

Stores plots as image files in the temporary workspace (See <http://stackoverflow.com/questions/20363266/how-can-i-suppress-the-creation-of-a-plot-while-calling-a-function-in-r>)

Examples

if (FALSE) {
plot_invisible("plot(1)", "test.png")
}