Marking Specific Pixels on the Given Image Plot
draw.coef(
img,
marks,
markstyle = c("black", "bi-dir"),
showlabels = TRUE,
plot.legend = TRUE,
grids = FALSE,
...
)a matrix of image data.
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.
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.
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.
boolean. Set plot.legend = TRUE if the colorbar legend is needed. The default is TRUE.
boolean. If grids = TRUE, grid lines are added for the image plot.
further arguments passed to the image function.
Ping-Yang Chen
plot.tsglm