image-methods {Matrix}R Documentation

Methods for image() in Package 'Matrix'

Description

Methods for function image in package Matrix. An image of a matrix

Usage

## S4 method for signature 'dgTMatrix':
image(x,
      xlim = .5 + c(0, di[2]),
      ylim = .5 + c(di[1], 0), aspect = "iso",
      sub = sprintf("Dimensions: %d x %d", di[1], di[2]),
      xlab = "Column", ylab = "Row",
      col.regions = grey(seq(from = 0.7, to = 0, length = 100)),
      colorkey = FALSE, ...)

Arguments

x a Matrix object, i.e., fulfilling is(x, "Matrix").
xlim, ylim x- and y-axis limits; may be used to “zoom into” matrix.
aspect aspect ratio specified as number (y/x) or string; see levelplot.
sub, xlab, ylab axis annotation with sensible defaults; see plot.default.
col.regions vector of gradually varying colors; see levelplot.
colorkey logical indicating if a color key aka ‘legend’ should be produced. Defaults to FALSE.
... further arguments passed to methods and levelplot.

Methods

All methods currently end up calling the method for the dgTMatrix class. Use showMethods(image) to list them all.

Examples

showMethods(image)
## If you want to see all the methods' implementations:
showMethods(image, incl=TRUE, inherit=FALSE)

[Package Matrix version 0.999375-4 Index]