converge
, such as st_point_in_polygon (method=c("centroid","pip")
).converge
.crs
?)normalize
dimensions of features, with st_normalize, so that full features fit within space of 0,1. (In this case, dimensions are lost, but shape is preserved.)normalize
, scale
.scale
to avoid clash with base::scale
, e.g. scaleByArea
distribute
algorithms which translate from converged to distributed tableaus in different ways:-regulargrid
- the current algorithm, uses the largest bounding box to make a grid squaretable
- creates grid with irregular sizing using largest bounding box per row and/or column (akin to a table layout); layout can be described in data.frame so regulargrid code could be refactorednofitpoly
- using methods used to enable efficient cutting out irregular polygons from materials such as cloth or metal, this method would use a user-defined buffer around polygons to find heuristic-optimal translation matrices to fit all (buffered) polygons together, approximating a tesselation. (buffer=1.5
). Maybe look at https://github.com/Jack000/SVGnest strippacking
- e.g. https://link.springer.com/article/10.1007/s10732-012-9203-9, an example in R: https://github.com/ahwallace/2d-strip-packing-dssknapsack
- Heuristic based on sizing of items https://phabi.ch/2021/02/06/solve-knapsack-problem-with-heuristics-in-r/circlepack
- using circle packing algorithm to pack differently sized polygons together in a less regular wayregularstacks
- rather than filling rows or columns, this method would stack according to certain classificatory criteria, e.g. classifying parameters such as polygon area. (group.by="AREA"
, margin=1
). Could be used as basis for spatial-icon-based "bar charts", with features optionally normalized.z
or byother
parameter to functions so that objects can be transformed in a way dictated by another converged sf layer. This could potentially be used for rasters etc with some additional workconverge
, from which transformation will be calculated. default=NULL.textLabel
function (with position options of centroid, within, above, below, left, right)scaleKey
function (with option of linear vs. areal scales: value specification of linear and or density, as appropriate)plot.sc.regulargrid
, plot.sc.spatialbarplot
)sc
which performs the most likely chain with defaults, or a few minor options: converge
-> distribute
, so that it is possible to just call plot(sc(sf_layer)).cartogram
package?Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.