labelr_JamPolygon: Define label positions for JamPolygon using polylabelr::poi()

labelr_JamPolygonR Documentation

Define label positions for JamPolygon using polylabelr::poi()

Description

Define label positions for JamPolygon using polylabelr::poi()

Usage

labelr_JamPolygon(jp, precision = 1, add_to_jp = FALSE, ...)

Arguments

jp

JamPolygon

precision

numeric passed to polylabelr::poi()

add_to_jp

logical indicating whether to add "label_x", "label_y" into the jp@polygons data.frame.

...

additional arguments are ignored.

Details

This function is a simple wrapper for polylabelr::poi(), which recognizes holes inside polygons.

Todo:

  • Consider basic support for non-overlapping label positions.

    1. First pass might be to use non-overlapping regions of a polygon among a set of polygons.

    2. Second pass would be to use the region with fewest overlaps among other polygons in the set, to define the label position. This rule could serve to solve (1) as well.

Value

matrix with columns "x", "y", "dist"

See Also

Other JamPolygon: JamPolygon-class, Venndir-class, add_orientation_JamPolygon(), area_JamPolygon(), bbox_JamPolygon(), buffer_JamPolygon(), check_JamPolygon(), check_Venndir(), eulerr_to_JamPolygon(), farthest_point_JamPolygon(), find_venn_overlaps_JamPolygon(), has_point_in_JamPolygon(), intersect_JamPolygon(), label_fill_JamPolygon(), label_outside_JamPolygon(), label_segment_JamPolygon(), minus_JamPolygon(), nearest_point_JamPolygon(), plot,JamPolygon,missing-method, plot.JamPolygon(), point_in_JamPolygon(), polyclip_to_JamPolygon(), sample_JamPolygon(), split_JamPolygon(), union_JamPolygon(), update_JamPolygon()


jmw86069/venndir documentation built on June 15, 2024, 1:52 p.m.