RPMG (version 2.2-2)

XSECDEM: Cross Sections Using RPMG

Description

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

Usage

XSECDEM(Data, labs, 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

demo

Argument used to turn off interactive part. Default is FALSE, but for package construction is set to TRUE so no interaction is required.

Value

No return values

Details

XSECDEM 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.

See Also

whichbutt, rowBUTTONS

Examples

Run this code
# NOT RUN {
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
XSECDEM(volcano, mybutts, demo=TRUE)



# }

Run the code above in your browser using DataCamp Workspace