sparsestQuadrant | R Documentation |
Finds the sparsest are in the current plot for placing an object.
sparsestQuadrant(x, y=NULL, nquadrant=5)
x |
if |
nquadrant |
an integer denoting the number of quadrants to partition
the space spanned by x and y. For example, if |
y |
a numeric vector containing the ordinate (y-axis) values
in the current plot. If |
Partitions the space spanned by the input x-y data coordinates
into a uniform nquadrant
by nquadrant
grid and finds
the "sparsest quadrant": defined as the quadrant
that contains a minimum population (pmin) of x-y data points
and is and farthest (in an L-inf sense) from quadrants
containing a population greater than pmin.
a list containing the x
and y
-coordinates of the sparsest
data location in the current plot. In addition,
a two-element corner
vector is returned and should be used directly
in placing a key at the returned coordinates via the autoKey
function.
autoKey
, autoText
.
## find the sparset quadrant in a circle tt <- seq(0,2*pi,length=100) x <- sin(tt) y <- cos(tt) sparsestQuadrant(x,y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.