{grDevices} R# Documentation

grDevices


require(R);

#' The R# Graphics Devices and Support for Colours and Fonts
imports "grDevices" from "graphics";

The R# Graphics Devices and Support for Colours and Fonts

The R# Graphics Devices and Support for Colours and Fonts



.NET clr function exports
dev.off

returns the number and name of the new active device (after the specified device has been shut down).

dev.cur

returns a length-one named integer vector giving the number and name of the active device, or 1, the null device, if none is active.

dev.set

dev.set makes the specified device the active device. If there is no device with that number, it is equivalent to dev.next. If which = 1 it opens a new device and selects that.

text

Add Text to a Plot

text draws the strings given in the vector labels at the coordinates given by x and y. y may be missing since xy.coords(x, y) is used for construction of the coordinates.

rasterFont

Create a raster font object

rasterPixels

convert the image to a collection of raster pixels

rasterImage

draw a raster image on a specific position

plot

Generic X-Y Plotting

Generic function for plotting of R objects.

wmf

windows metafile device

bitmap

Graphics Device for Bitmap Files via Ghostscript

save image data as bitmap image file, bitmap generates a graphics file. dev2bitmap copies the current graphics device to a file in a graphics format.

png

BMP, JPEG, PNG and TIFF graphics devices

Graphics devices for BMP, JPEG, PNG and TIFF format bitmap files.

readImage

readImage: this function reads various types of images Reads images of type .png, .jpeg, .jpg, .tiff This function takes as input a string-path and returns the image in a matrix or array form. Supported types of images are .png, .jpeg, .jpg, .tiff. Extension types similar to .tiff such as .tif, .TIFF, .TIF are also supported

thumbnail

Create thumbnail image

resizeImage

resize image to a new pixel size

pdf

PDF Graphics Device

pdf starts the graphics device driver for producing PDF graphics.

svg

Cairographics-based SVG, PDF and PostScript Graphics Devices

Graphics devices for SVG, PDF and PostScript graphics files using the cairo graphics API.

graphics

save the graphics plot object as image file

graphics.attrs
rgb

RGB Color Specification

This function creates colors corresponding to the given intensities (between 0 and max) of the red, green and blue primaries. The colour specification refers to the standard sRGB colorspace (IEC standard 61966). An alpha transparency value can also be specified (As an opacity, so 0 means fully transparent And max means opaque). If alpha Is Not specified, an opaque colour Is generated. The names argument may be used To provide names For the colors. The values returned by these functions can be used With a col= specification In graphics functions Or In par.

alpha

adjust color alpha value

register.color_palette

register a custom color palette to the graphics system

colors

get color set


[Document Index]