Learn R Programming

fmesher (version 0.3.0)

fm_mesh_2d_map: Special coordinate mappings for fm_mesh_2d projections.

Description

Calculates coordinate mappings for spherical fm_mesh_2d projections. This is an internal function not intended for general use.

Usage

fm_mesh_2d_map(loc, projection = NULL, inverse = TRUE)

fm_mesh_2d_map_lim(loc = NULL, projection = NULL)

Value

For fm_mesh_2d_map_lim, a list:

xlim

X axis limits in the map domain

ylim

Y axis limits in the map domain

No attempt is made to find minimal limits for partial spherical domains.

Arguments

loc

Coordinates to be mapped.

projection

The projection type. One of NULL, "default", "longlat", "longsinlat", or "mollweide".

inverse

If TRUE, loc are map coordinates and coordinates in the spherical domain are calculated. If FALSE, loc are coordinates in the spherical domain and the forward map projection is calculated. Default: TRUE

Functions

  • fm_mesh_2d_map_lim(): Projection extent limit calculations

Author

Finn Lindgren finn.lindgren@gmail.com

See Also

fm_evaluator()

Examples

Run this code
(loc <- fm_mesh_2d_map(cbind(20, 10), "longlat"))
fm_mesh_2d_map(loc, "longlat", inverse = FALSE)

Run the code above in your browser using DataLab