Description Usage Arguments Value Examples
filter_points
filters points outside the target area.
1 2 | filter_points(df, xmin, xmax, ymin, ymax, limits = NULL, x = x,
y = y, margin = 25)
|
df |
A data frame containing x and y coordinates |
xmin, xmax, ymin, ymax |
Minimum and maximum coordinates of target area |
limits |
a named list of limits including xmin, xmax, ymin, ymax |
x, y |
x and y variables to use |
margin |
The margin (in pixels) around the target area you want to include |
Returns a data frame with coordinates outside the target area replaced by NaN values
1 2 | df <- data.frame(x = runif(10, 0, 10), y = runif(10, 0, 10))
filter_points(df, 4, 6, 5, 7, margin = 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.