visualise
and all its’ helpers to make plotting way faster.ungroup
argument in gt_pullsp
setTheme
in an effort to make it more accessible.gs_point
now allows to create an empty geom that contains only “window” information.visualise
can now plot empty geoms, making use of their “window” information, to create an empty surface for sketching.template
has been removed from all gs_*
functions. The new workflow to sketch geoms is now either via an already open plot, or via a sketching surface (see above changes).gt_sketch
, as it is redundant.@extent
-slot for faster processing of large objects where it takes long to find min/max values of coordinates.getRes
now returns a vector, instead of a tibblegetLayers
now returns all layers in a list (no subsetting more possible)getGroups
now returns for RasterLayers without a raster attribute table (RAT) an empty tibble.gc_geom
now only adds groups to the group attribute table in case the input raster actually contains a RAT.gtTheme
has been beautified (it now also shows whether an attribute is scaled to some parameter)getHistory
now prints that this object has been loaded from memory.ppp
) have been removed temporarily.geom
s has been refined. Several layers are by default stacked, but it is now also possible to create a list of separate geom
s per layer with gc_geom(..., stack = FALSE)
.gc_geom(..., as_hex = TRUE)
.gt_filter()
, it also includes subsetting x and y values of the vertices.gt_pull()
.getCols()
, getRows()
and getNames()
.@scale
-slot from from the geom class, because it is no longer needed.visualise()
has been revised so that it fully supports plotting all geometric classes that have getters defined.gt_*()
functions were revised so that they too support all geometric classes that have getters defined.setPoints()
, setFeatures()
and setGroups()
so that new tables can only be set via joining by the primary key (fid
, fid
and gid
respectively).gtTheme
now contains a separate slot for all information that relate to the colour scale of values and the legend.getLayer()
also for sf and Spatial objects.visualise()
This update introduces the geom type ‘grid’, which is meant to store raster data. It stores as @point
slot a compact version that gives (in both x and y dimension) the three values origin, number of cells and cell distance/resolution. It stores values in run-length encoding (rle) (if that is smaller than non-compressed). The @feature
slot of a grid geom can contain any number of tables that would correspond to layers in a raster. It can store in the @group
slot an attribute table per each of the layers.
The following functions have been modified:
gc_geom()
now has a method to convert Raster objects to grid geoms.get/setTable(x, slot = "point")
has been moved to get/setPoints(x)
get/setTable(x, slot = "feat")
has been moved to get/setFeatures(x)
get/setTable(x, slot = "group")
has been moved to get/setGroups(x)
getPoints()
for grid geoms extracts the compacted @points
slot into the interoperable table this getter is supposed to hand out.getFeatures()
for grid geoms reconstructs fid for points and extracts rle tables, if they exist.makeObject()
is not a generic anymore but is now a function based on getters. That means that any class that has the respective getters defined, can be plotted with visualise()
(which includes now sf and sp objects).getSubset()
has been integrated into the respective getters, i.e., to get a subset of points, use getPoints(x, fid == 1)
, etc.The following functions are new:
gc_raster()
to transform a grid geom to an object of class Raster*
.getRes()
to get the resolution of a gridded object.getLayer()
to extract layers from an object that has layers.gs_sketch()
.