XSECDEMg function

Cross Sections Using RPMG

Cross Sections Using RPMG

This function Takes a Digital Elevation Map (or any surface) and illustrates how to take interactive cross sections with RPMG through the surface.

XSECDEMg(Data, labs=NULL, pts=NULL, nlevels=10, demo=FALSE)

Arguments

  • Data: Structure with x, y, z components, typical of contoured surfaces or digital images
  • labs: Vector of labels for Buttons used in the RPMG
  • pts: Points to plot on map view
  • nlevels: Number of levels for contours
  • demo: Argument used to turn off interactive part. Default is FALSE, but for package construction is set to TRUE so no interaction is required.

Details

XSECDEMg is an example stub illustrating the use of RPMG. The idea is to set up a while() loop that uses input from the locator() function to execute or analyze data depending on user defined buttons. Actions are executed when the button clicked matches the list of names provided by the user.

Returns

No return values

Author(s)

Jonathan M. Lees jonathan.lees@unc.edu

Note

This code is designed as an example of how to set up a Really Poor Man's GUI. The demo argument is supplied so that this code will run without user input, as when creating a checks for package construction.

See Also

whichbutt, rowBUTTONS

Examples

data(volcano) attr(volcano, 'dx') =10 attr(volcano, 'dy') =10 mybutts = c("DONE", "REFRESH", "rainbow", "topo", "terrain", "CONT", "XSEC","PS" ) ### in the following change demo=FALSE to get interactive behavior XSECDEMg(volcano, mybutts, demo=TRUE)
  • Maintainer: Jonathan M. Lees
  • License: GPL (>= 2)
  • Last published: 2024-07-09

Useful links