emptyCorner | R Documentation |
This function identifies the corner of a plot region that is the least occupied by plot elements.
emptyCorner(x, by = "distance", onlyIn = TRUE, least = TRUE)
x |
A two-column matrix or data frame with points representing plot items. |
by |
Character, method by which to identify the "most empty" quadrat. Any of (partial matching is OK, and case is ignored):
|
onlyIn |
Logical, if |
least |
Logical, if |
Note that you must already have a plot made for this to work.
Character indicating the corner that is the least occupied.
# generate some numbers
set.seed(123)
x <- c(4, rnorm(100), runif(200, -2, 0))
y <- c(2, rnorm(100), runif(200, -2, 0))
xlim <- c(min(x), 1.5 * max(x))
plot(x, y, xlim=xlim)
xy <- cbind(x, y)
emptyCorner(xy)
emptyCorner(xy, by='density')
emptyCorner(xy, by='dd')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.