Rotate_obj {CCAMLRGIS}R Documentation

Rotate object

Description

Rotate a spatial object by setting the longitude that should point up.

Usage

Rotate_obj(Input, Lon0 = NULL)

Arguments

Input

Spatial object of class sf, sfc or SpatRaster (terra).

Lon0

numeric, longitude that will point up in the resulting map.

Value

Spatial object in your environment to only be used for plotting, not for analysis.

See Also

create_Points, create_Lines, create_Polys, create_PolyGrids, create_Stations, create_Pies, create_Arrow.

Examples


# For more examples, see:
# https://github.com/ccamlr/CCAMLRGIS#47-rotate_obj
# and:
# https://github.com/ccamlr/CCAMLRGIS/blob/master/Basemaps/Basemaps.md

RotB=Rotate_obj(SmallBathy(),Lon0=-180)
terra::plot(RotB,breaks=Depth_cuts,col=Depth_cols,axes=FALSE,box=FALSE,legend=FALSE)
add_RefGrid(bb=st_bbox(RotB),ResLat=10,ResLon=20,LabLon = -180,offset = 3)


[Package CCAMLRGIS version 4.1.1 Index]