geometries

functions to create geometric objects parametrically or by sketching them

gs_point()

Create a point geom

gs_line()

Create a line geom

gs_polygon() gs_triangle() gs_square() gs_rectangle() gs_hexagon()

Create a polygon geom

gs_random()

Create a geom randomly

gs_tiles()

Create a regular tiling geom

gs_voronoi()

Create a voronoi tiling geom

transform geometry classes

functions that transform between geometric classes

gc_geom()

Transform a spatial object to class geom

gc_raster()

Transform a spatial object to class Raster*

gc_sf()

Transform a spatial object to class sf

gc_sp()

Transform a spatial object to class Spatial

getters and setters

methods that standardise dealing with geometric objects

getCols()

Get the number of columns of a spatial object.

getCRS()

Get the coordinate reference system of a spatial object.

getExtent()

Get the extent (bounding box) of a spatial object.

getFeatures()

Get the table of feature attributes

getGroups()

Get the table of group attributes

getHistory()

Get the history of a spatial object.

getLayers()

Get a specific layer of a spatial object.

getNames()

Get the name(s) of a spatial object.

getPoints()

Get the table of point coordinates

getRes()

Get the spatial resolution of a spatial object.

getRows()

Get the number of rows of a spatial object.

getType()

Get the type of a spatial object.

getWindow()

Get the reference window of a spatial object.

setCRS()

Set (or transform) the coordinate reference system of a spatial object.

setFeatures()

Set a table of feature attributes

setGroups()

Set a table of group attributes

setHistory()

Set additional entries to the history of an object

setWindow()

Set the reference window of a spatial object.

standardised tools

functions that modify geometric objects of all supported classes

gt_filter()

Subset a geometric object using column values

gt_locate()

Locate (and identify) clicks

gt_pull()

Extract a single column from a geometric object

gt_reflect()

Reflect geometric objects

gt_rotate()

Rotate geometric objects

gt_scale()

Scale geometric objects

gt_skew()

Skew geometric objects

gt_stretch()

Stretch geometric objects

gt_translate()

Translate geometric objects

visualise

plot geometric objects

visualise()

Visualise geometric objects

setTheme()

Create a new theme

classes

new classes that come with this package

geom-class

Geometry class (S4) and methods

gtTheme-class

Theme class (S4) and methods

example data

data that are used throughout the documentation

gtGeoms

Example geom objects