nudge_polygon_coords | R Documentation |
Nudge polygon coordinates
nudge_polygon_coords(polygon_list, nudge, ...)
This function differs from nudge_polygon_list()
in that all polygons
are nudged the exact same amount. If there are nested polygons, they
are iteratively all nudged the same.
Other venndir polygons:
bbox_polygon_list()
,
eulerr_to_polygon_list()
,
get_largest_polygon_list()
,
get_venn_polygon_shapes()
,
intersect_polygon_list()
,
labelr_polygon_list()
,
minus_polygon_list()
,
nudge_polygon_list()
,
plot_polygon_list()
,
polygon_areas()
,
polygon_circles()
,
polygon_ellipses()
,
polygon_list_labelr()
,
polygon_list_to_xy_list()
,
rescale_polygon_list()
,
simple_ellipse()
,
union_polygon_list()
,
xy_list_to_polygon_list()
D <- list(
x=c(-3, 3, 3, 0, -3),
y=c(-3, -3, 1.5, 4, 1.5))
E <- list(
x=c(-3, 3, 3, -3),
y=c(-3, -3, 3, 3))
DElist <- list(D=D, E=E, DE=list(D=D, E=E))
nudge <- c(x=10, y=-10)
new_polygon_list <- nudge_polygon_coords(polygon_list=DElist, nudge=nudge)
plot_polygon_list(new_polygon_list)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.