click.coordinates: Function to get coordinates by mouse.

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/click.coordinates.R

Description

This function returns the x-y-coordinates of mouseclicks on a plot area (e.g. a map generated by display.surface).

Usage

1

Arguments

n

(numeric vector) Number of coordinates to be recorded.

Value

A numeric matrix with n rows of mouse-click-derived coordinates (x and y in columns).

Author(s)

Michael Dietze

References

CSDMS website. http://csdms.colorado.edu/wiki/Model:CHILD.
Tucker, GE. 2010. CHILD Users Guide for version R9.4.1. http://csdms.colorado.edu/mediawiki/images/Child_users_guide.pdf
Tucker, GE., Lancaster, ST., Gasparini, NM., Bras, RL. 2001. The Channel-Hillslope Integrated Landscape Development (CHILD) Model. In Harmon, RS., Doe, W.W. III (eds). Landscape Erosion and Evolution Modeling. Kluwer Academic/Plenum Publishers, pp. 349-388.

See Also

trace.stream, display.surface

Examples

1
2
3
4
5
6
# create an empty plot as base for coordinates digitising
plot(NA, xlim = c(0, 200), ylim = c(0, 200))
  
# digitise and show 2 x-y-coordinates by left clicks
xy <- click.coordinates(2)
xy

coffeemuggler/RCHILD documentation built on Dec. 31, 2020, 10:05 p.m.