draw.coef {TensorTest2D}R Documentation

Marking Specific Pixels on the Given Image Plot

Description

Marking Specific Pixels on the Given Image Plot

Usage

draw.coef(
  img,
  marks,
  markstyle = c("black", "bi-dir"),
  showlabels = TRUE,
  plot.legend = TRUE,
  grids = FALSE,
  ...
)

Arguments

img

a matrix of image data.

marks

a matrix of the same size as img. On the image plot, the pixels are marked if the corresponding cells in marks are non-zero. The user can specify the style of the marks through markstyle.

markstyle

string. The style of pixels' marks. If markstyle = 'black', the rectangles are marked by black edges for non-zero cells in marks. If markstyle = 'bi-dir', "red" rectangles are marked on the pixels in which the cells in marks are positive, and, "blue" rectangles are marked on the pixels in which the cells in marks are negative.

showlabels

boolean. For showlabels = TRUE, if dimnames(img) exists, the row and column names are shown on the sides of the image plot; otherwise, the row and column indices are shown.

plot.legend

boolean. Set plot.legend = TRUE if the colorbar legend is needed. The default is TRUE.

grids

boolean. If grids = TRUE, grid lines are added for the image plot.

...

further arguments passed to the image function.

Author(s)

Ping-Yang Chen

See Also

plot.tsglm

Examples

#


[Package TensorTest2D version 1.1.2 Index]