points2 {imagefx} | R Documentation |
This is a plotting function that should be used with image2
. This function is in line with image2
, which locates the origin to the top-left corner as opposed to the bottom-left as image
does.
points2(x,y,img,...)
x |
x location of points to plot |
y |
y location of points to plot |
img |
original image (matrix) which was plotted using |
... |
additional arguments to be passed to |
Nothing. This is a plotting function.
Alex J.C. Witsil
## build a test matrix
mat = matrix(0,nrow=20,ncol=20)
mat[1,1]=1
image2(mat,axes=FALSE,xlab='',ylab='')
points2(1,1,img=mat,col='red',pch=16)