points2: Plot points on image

Description Usage Arguments Value Author(s) See Also Examples

View source: R/points2.r

Description

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.

Usage

1
points2(x,y,img,...)

Arguments

x

x location of points to plot

y

y location of points to plot

img

original image (matrix) which was plotted using image2. This is supplied simply for dimensional information.

...

additional arguments to be passed to points.

Value

Nothing. This is a plotting function.

Author(s)

Alex J.C. Witsil

See Also

image2

Examples

1
2
3
4
5
6
## 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)

imagefx documentation built on Feb. 14, 2020, 1:07 a.m.