preparePlot {CORElearn}R Documentation

Prepare graphics device

Description

Based on provided fileName opens and sets appropriate graphical device: pdf, postscript, interactive graphical window, or (only on windows) windows metafile,.

Usage

preparePlot(fileName="Rplot",...)
 

Arguments

fileName Name of the file to store the output to.
... Further parameters passed to device.

Details

The function opens the graphical output device based on fileName extension. The extensions .pdf, .ps, or none select pdf, postscript, or a default (interactive) graphical device. On Windows also .emf extension is supported which opens win.metafile and creates vector graphics in windows enhanced metafile format. #endif Some sensible default values are passed to these devices, but further options can be passed via ....

Value

A plot device is opened and nothing is returned to the R interpreter.

Author(s)

Marko Robnik-Sikonja

See Also

CORElearn, plot.ordEval, pdf, postscript, Devices

Examples

   # prepare a data set
    dat <- ordDataGen(200)
    # evaluate ordered features with ordEval
    oe <- ordEval(class ~ ., dat, ordEvalNoRandomNormalizers=200)
    # creates a separate postscript file for each attribute with given name     
    preparePlot("myGraph%03d.ps") 
    plot(oe)
    dev.off()

[Package CORElearn version 0.9.22 Index]