automapPts {sendplot}R Documentation

Compares Images To Find Bounding Coordinates In Pixils

Description

NOT CALLED BY USER. The automapPts function is utilized by makeImap to retrieve the up.left and lower.right pixil coordinates of a desired interactive figure

Usage

automapPts(Splot,
           fname.root="Splot",
           boundFileName="SplotDot",
           dir="./",
           automap.method="mode")

Arguments

Splot An object of the class Splot
fname.root Base name of the static version of plots
boundFileName Base name of the version of plots with the given figure's additional bounding points displayed
dir directory path to where files were created
automap.method Method to detect upper and lower bounds. Current options are "mode" or "median"

Details

This function retrieves the up.left and lower.right pixil coordinates of a desired interactive figure. The function assumes that a 'clean' image without additional bounding points and a 'bounding' image that has additional bounding points (see addBounding) are created. It converts these images to .tif files and uses the rtiff package readTiff to compare the images for differences, thus picking up the additional points.

Value

A list with up.left and low.right bounding coordinates in pixils or NA if could not map correctly

Note

NOT CALLED BY USER. INTERNAL HELPER FUNCTION

utilizes readTiff from rtiff library

Author(s)

Lori A.Shepherd, Daniel P.Gaile

References

Eric Kort (2006). rtiff: A tiff reader for R.. R package version 1.1.

See Also

makeImap, rtiff, getBounds, mapMethod

Examples


# not called by user


[Package sendplot version 3.7.0 Index]