arrayplot: Show an image based on row/column information

Description Usage Arguments Details Value

View source: R/arrayplot.R

Description

Show an image based on row/column information

Usage

1
2
3
4
5
6
7
spatial.avg(mat, window = 20)

## S3 method for class 'arrayplot'
plot(x, ...)

arrayplot(rows, cols, vals, byrow = TRUE, n.row = max(rows),
  n.col = max(cols), pal = NULL, bg.col = "min")

Arguments

mat

an object of class arrayplot

window

window size to average

rows

integer vector with row positions

cols

integer vector with column positions

vals

numeric vector with values to plot

byrow

should the image be plotted row-wise (default:TRUE)

n.row

number of rows (if NULL, maximum value of rows)

pal

Character vector to use as color palette for the image

bg.col

how the missing values should be extrapolated

Details

The image matrix is created from three columns containing the value to plot and its position (row and column) on the image.

spatial.avg can be used to average the image.

Value

spatial.avg and arrayplot both return an object of class arrayplot.


january3/myfuncs documentation built on April 1, 2020, 4:42 a.m.