Learn R Programming

TaxicabCA (version 0.1.1)

JitterPosition: Moves points that are close together

Description

Moves points that are close together

Usage

JitterPosition(x, y, jitterDefault = 0.01, Near = 0.045)

Arguments

x

The x-coordinates of the points

y

The y-coordinates of the points

jitterDefault

A positive number controlling the maximum jitter

Near

A positive number controlling the definition of "near"

Value

A list giving the new x and y coordinates, and, for each point, its number neighbours and a suggested relative size for the plotting symbol

Details

This function is for internal usage only.

Examples

Run this code
# NOT RUN {
JitterPosition(c(1:5,2,2,4,4,4),c(1:5,2,2,4,4,4))

# }

Run the code above in your browser using DataLab