DTA.plot.it {DTA} | R Documentation

## Plots in any format and any quality

### Description

`DTA.plot.it` can save plots in any format and any quality in addition to show them in R devices

### Usage

    DTA.plot.it(filename,sw = 1,sh = 1,sres = 1,plotsfkt,ww = 7,wh = 7,pointsize = 12,dev.pointsize = 8,paper = "special",quality = 100,units = "px",bg = "white",fileformat = "jpeg",saveit = FALSE,notinR = FALSE,RStudio = FALSE,addformat = NULL)

### Arguments

`filename` | Name of the plot to be saved without the format type suffix.
`sw` | Scaling factor of width. Scaled with 480px.
`sh` | Scaling factor of height. Scaled with 480px.
`sres` | Scaling factor of the resolution. Scaled with 72dpi.
`plotsfkt` | Function of plots to be plotted.
`ww` | Width of window. Needed only for plotting in R or if filformat = "pdf" or "ps". See pdf or ps.
`wh` | Height of window. Needed only for plotting in R or if filformat = "pdf" or "ps". See pdf or ps.
`pointsize` | The default pointsize of plotted text, interpreted as big points (1/72 inch) for plots to be saved.
`dev.pointsize` | Pointsize of plotted text, interpreted as big points (1/72 inch) for display in R.
`paper` | Needed only if filformat = "pdf" or "ps". See pdf or ps.
`quality` | Needed only if filformat = "jpeg". See jpeg.
`units` | Needed only if filformat = "jpeg", "png", "bmp" or "tiff". See corresponding function.
`bg` | Backgroundcolor.
`fileformat` | Save the plot as "jpeg", "png", "bmp", "tiff", "ps" or "pdf".
`saveit` | Should plot be saved.
`notinR` | Should plot be not plotted in R.
`RStudio` | For RStudio users. Suppresses the opening of a new device, as RStudio allows only one.
`addformat` | Should plot be saved additionally in another format, "jpeg", "png", "bmp", "tiff", "ps" or "pdf".

### Author(s)

Bjoern Schwalb schwalb@lmb.uni-muenchen.de

### Examples

    plotsfkt = function(){
    par(mfrow = c(1,2))
    plot(1:10)
    plot(10:1)
    }
    DTA.plot.it(filename = "test",plotsfkt = plotsfkt,saveit = TRUE)

    dev.off()

[Package DTA version 2.34.0 Index]