Skip to contents

Helper for plotting locations on map.

Usage

# S3 method for class 'openaq_locations_data.frame'
plot(x, y = NULL, ...)

Arguments

x

the coordinates of points in the plot. Alternatively, a single plotting structure, function or any R object with a plot method can be provided.

y

the y coordinates of points in the plot, optional if x is an appropriate structure.

...

Other options passed on to base::plot().

Examples

if (FALSE) { # interactive()
df <- list_locations(limit = 100)
plot(df, pch = 19, col = df$provider)
}