idPts {astrochron}R Documentation

Interactively identify points in plot

Description

Interactively identify points in x,y plot.

Usage

idPts(dat1,dat2=NULL,ptsize=1,xmin=NULL,xmax=NULL,ymin=NULL,ymax=NULL,
       logx=F,logy=F,plotype=1,annotate=1,output=1,verbose=T)

Arguments

dat1

Data frame with one, two or three columns. If one column, dat2 must also be specified. If three columns, the data frame is assumed to represent a stratigraphic series, and the first column should be depth, height or time.

dat2

Data frame with one column.

ptsize

Size of plotted points.

xmin

Minimum x-value (column 1) to plot

xmax

Maximum x-value (column 1) to plot

ymin

Minimum y-value (column 2) to plot

ymax

Maximum y-value (column 2) to plot

logx

Plot x-axis using logarithmic scaling? (T or F)

logy

Plot y-axis using logarithmic scaling? (T or F)

plotype

Type of plot to generate: 1= points and lines, 2 = points, 3 = lines

annotate

Annotate plot with text indicating coordinates?: 0=none, 1=annotate above point, 2=annotate below point

output

Return identified points as a data frame? (0) no, (1) return x and y, (2) return index, x and y. If dat1 contains three columns, option 2 will return index, location, x and y.

verbose

Verbose output? (T or F)

See Also

delPts, iso, trim and trimAT


[Package astrochron version 1.0 Index]