Learn R Programming

CoordinateCleaner (version 1.0-7)

plot.spatialvalid: Plot Method for Class Spatialvalid

Description

A set of plots to explore objects of the class spatialvalid. A plot to visualize the flags from CleanCoordinates

Usage

# S3 method for spatialvalid
plot(x, bgmap = NULL, clean = TRUE, details = TRUE, 
              pts.size = 1, font.size = 10, ...)

Arguments

x

an object of the class spatialvalid as from CleanCoordinates.

bgmap

an object of the class SpatialPolygonsDataFrame used as background map. Default = landmass

clean

logical. If TRUE, non-flagged coordinates are included in the map.

details

logical. If TRUE, occurrences are colour-coded by the type of flag.

pts.size

numeric. The point size for the plot.

font.size

numeric. The font size for the legend and axes

additional arguments passed to other methods

Value

A plot of the records flagged as potentially erroneous by CleanCoordinates.

See Also

CleanCoordinates

Examples

Run this code
# NOT RUN {
exmpl <- data.frame(species = sample(letters, size = 250, replace = TRUE),
                    decimallongitude = runif(250, min = 42, max = 51),
                    decimallatitude = runif(250, min = -26, max = -11))

test <- CleanCoordinates(exmpl, species = "species", verbose = FALSE)

summary(test)
# }

Run the code above in your browser using DataLab