makeImage: makeImage

View source: R/F002_image.R

makeImageR Documentation

makeImage

Description

Functions to make a component for the rasterImage function in the base graphics system. makeImage assumes the input "image"is an RGB array, whilst makeImageFromMatrix converts a matrix into colours for you using matrixToColours.

Usage

makeImage(
  type = "rasterImage",
  xleft = 0,
  xright = 1,
  ytop = 1,
  ybottom = 0,
  ...
)

makeImageFromMatrix(...)

makeImageFromMatrix2(.useData = c(FALSE, TRUE), ...)

Arguments

type

plotting function(s) used

xleft, xright, ytop, ybottom

positioning. see rasterImage

...

parameters passed to the component or the component functions imageColourScheme and matrixToColours.

Value

a component


R-graphic-design/RGD documentation built on Jan. 2, 2023, 10:30 p.m.