fm_mesh_2d_map: Special coordinate mappings for 'fm_mesh_2d' projections.

View source: R/lattice_2d.R

fm_mesh_2d_mapR Documentation

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 = c("default", "longlat", "longsinlat", "mollweide"),
  inverse = TRUE
)

fm_mesh_2d_map_lim(
  loc = NULL,
  projection = c("default", "longlat", "longsinlat", "mollweide")
)

Arguments

loc

Coordinates to be mapped.

projection

The projection type.

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

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.

Functions

  • fm_mesh_2d_map_lim(): Projection extent limit calculations

Author(s)

Finn Lindgren finn.lindgren@gmail.com

See Also

fm_evaluator()

Examples

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


fmesher documentation built on Nov. 2, 2023, 5:35 p.m.