Usage
projections(proj, rotate = NULL, center = NULL, translate = NULL,
scale = NULL, clipAngle = NULL, precision = NULL, parallels = NULL,
clipExtent = NULL, invert = NULL)
Arguments
proj
Map projection name. One of albers, albersUsa, azimuthalEqualArea,
azimuthalEquidistant, conicEqualArea, conicConformal, conicEquidistant, equirectangular,
gnomonic, mercator, orthographic, stereographic, or transverseMercator.
rotate
If rotation is specified, sets the projection's three-axis rotation to the
specified angles yaw, pitch and roll (or equivalently longitude, latitude and roll)
in degrees and returns the projection. If rotation is not specified, returns the current
rotatio
center
If center is specified, sets the projection's center to the specified location, a
two-element array of longitude and latitude in degrees and returns the projection. If center is
not specified, returns the current center which defaults to (0,0)
translate
If point is specified, sets the projection's translation offset to the
specified two-element array [x, y] and returns the projection. If point is not specified,
returns the current translation offset which defaults to [480, 250]. The translation offset
de
scale
If scale is specified, sets the projection's scale factor to the specified value
and returns the projection. If scale is not specified, returns the current scale factor which
defaults to 150. The scale factor corresponds linearly to the distance between p
clipAngle
If angle is specified, sets the projection's clipping circle radius to the
specified angle in degrees and returns the projection. If angle is null, switches to
antimeridian cutting rather than small-circle clipping. If angle is not specified, returns the
precision
If precision is specified, sets the threshold for the projection's adaptive
resampling to the specified value in pixels and returns the projection. This value corresponds
to the Douglas-Peucker distance. If precision is not specified, returns the projecti
parallels
Depends on the projection used! See
https://github.com/mbostock/d3/wiki/Geo-Projections#standard-projections for help
clipExtent
If extent is specified, sets the projection's viewport clip extent to the
specified bounds in pixels and returns the projection. The extent bounds are specified as an
array [[x0, y0], [x1, y1]], where x0 is the left-side of the viewport, y0 is the top, x1
invert
Projects backward from Cartesian coordinates (in pixels) to spherical coordinates
(in degrees). Returns an array [longitude, latitude] given the input array [x, y].