Learn R Programming

LSD (version 2.0)

plotit: Plot it

Description

Plot plots in printable quality and all kinds of formats.

Usage

plotit(filename, sw = 2, sh = 2, sres = 2, plotsfkt, ww = 7, wh = 7, pointsize = 12, x11pointsize = 8, paper = "special", quality = 100, units = "px", bg = "white", cex.main = 2, cex.lab = 1.5, fileformat = "jpg", saveit = FALSE, notinR = FALSE, addformat = NULL)

Arguments

filename
name of the plot to be saved with the format type suffix
sw
scaling factor of width
sh
scaling factor of height
sres
scaling factor of the resolution
plotsfkt
function of plots to be plotted
ww
width of window
wh
height of window
pointsize
the default pointsize of plotted text, interpreted as big points (1/72 inch) for plots to be saved
x11pointsize
pointsize of plotted text, interpreted as big points (1/72 inch) for display in R
paper
needed only if filformat = "pdf" or "ps"
quality
needed only if filformat = "jpg"
units
needed only if filformat = "jpg", "png", "bmp" or "tiff"
bg
backgroundcolor
cex.main
magnification to be used for main titles
cex.lab
magnification to be used for x and y labels
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
addformat
should plot be saved additionally in another format

See Also

LSD.demo.tour

Examples

Run this code
demo.plotit()

Run the code above in your browser using DataLab