plot.kinmap: Plot image of a matrix with adjoining colour bar

Description Usage Arguments Author(s) See Also Examples

View source: R/plot.kinmap.R

Description

Plots an image of a matrix with adjoining colour bar.

Usage

1
2
3
## S3 method for class 'kinmap'
plot(x, param, zlim=NULL, xlab="L", ylab="M", zlab=NULL,
                   color.table=heat.colors(100), logz=FALSE, ...)

Arguments

x

an object of class kinmap created with fit.cube. A kinmap is a list that contains at least the elements L and M as well as the measurement specified by param.

param

a character string specifying the measurement to be plotted. This has to correspond to a column name present in x.

zlim

the minimum and maximum 'z' values for which colors should be plotted, defaulting to the range of the finite values of 'z'.

xlab, ylab

each a character string giving the labels for the x and y axis. Defaults are "L" and "M".

zlab

the label for the colour bar. This defaults to param. For parameters sigma, v and gof, special labels using Greek characters are hard-coded.

color.table

The colour table to be used. Defaults to heat.colors(100)

logz

Logical. If TRUE, then the logarithm of the measurement is plotted. This is useful for surface brightness. Note that no checks are performed whether the measurement is positive everywhere!

...

graphical parameters for 'plot' may also be passed as arguments to this function, as can the plot aspect ratio 'asp' and 'axes' (see 'plot.window'). Note that these parameters only apply to the main plot, not the colour bar.

Author(s)

Oliver Czoske

See Also

image, image.default

Examples

1
2
3
4
5
6
  x <- y <- seq(-4*pi, 4*pi, len=27)
  LM <- expand.grid(x, y)
  r <- sqrt(outer(x^2, y^2, "+"))
  cube <- list(L=LM$Var1, M=LM$Var2, r=as.vector(r))
  class(cube) <- "kinmap"
  plot(cube, "r")

oczoske/slacR documentation built on May 20, 2019, 8:23 p.m.