R/plotBoth.R

Defines functions plotBoth

Documented in plotBoth

plotBoth = function(plotfn, filename, control = plotBoth.control(), ...){
    if(control$genPlots){
        fname = paste('Figures/',filename,".eps",sep="")

        postscript(fname, horizontal = FALSE, width = 10, height = 8, paper = "special")
        plotfn(...)
        graphics.off()
        if(control$embedF)
            embedFonts(fname)

        fname = gsub('eps','pdf',fname)

        pdf(fname, width = 10, height = 8)
        plotfn(...)
        graphics.off()
        if(control$embedF)
            embedFonts(fname, options = control$embedFoptions)
    }
}

Try the dafs package in your browser

Any scripts or data that you put into this service are public.

dafs documentation built on April 11, 2022, 5:06 p.m.