Learn R Programming

ShapePattern (version 3.1.0)

doubleplotter: A comparison of two maps based on their empirical (null) distributions for a class-focused pattern metric

Description

This function produces boxplots comparing the expected values (empirical, null distributions) for a given class-focused pattern metric between two maps.

Usage

doubleplotter(data1 = data$result1, 
  data2 = data$result2,  
  metric = 5)

Value

The output is a double boxplot drawn on the graphics device.

Arguments

data1

This is the result object for the first map to be compared, where the output is returned by the function singlemap.

data2

This is the result object for the second map to be compared, where the output is returned by the function singlemap.

metric

This is an integer (1-110) indicating which metric the comparison boxplots will be drawn for. A list of these metrics is given in the header of the function's source code.

Author

Tarmo K. Remmel

Details

No additional details at this time.

References

No references at this time.

See Also

See Also singlemap, singleplotter, and imaks.

Examples

Run this code
# EXAMPLE USES PREVIOUSLY PRODUCED RESULTS TO SPEED-UP THE EXAMPLE,
# BUT THE EXAMPLE FROM singlemap() SHOULD BE CALLED FIRST, ONCE FOR EACH
# MAP TO BE COMPARED (FOR EXAMPLE)
#result1 <- singlemap(IMG = data$demoimage1, VERBOSE = TRUE, reps = 5, LEVEL=6) 
#result2 <- singlemap(IMG = data$demoimage2, VERBOSE = TRUE, reps = 5, LEVEL=6)
doubleplotter(data1 = data$result1, data2 = data$result2, metric = 5) 

Run the code above in your browser using DataLab