buffer_JamPolygon | R Documentation |
Apply buffer outside or inside JamPolygon
buffer_JamPolygon(
jp,
buffer = -0.5,
steps = 20,
relative = TRUE,
verbose = FALSE,
...
)
jp |
|
buffer |
|
steps |
|
relative |
|
verbose |
|
... |
additional arguments are ignored. |
JamPolygon
with one polygon, although the polygon could
contain multiple disconnected parts.
Other JamPolygon:
JamPolygon-class
,
Venndir-class
,
[,JamPolygon,ANY,ANY,ANY-method
,
add_orientation_JamPolygon()
,
area_JamPolygon()
,
bbox_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()
,
labelr_JamPolygon()
,
minus_JamPolygon()
,
nearest_point_JamPolygon()
,
nudge_JamPolygon()
,
plot.JamPolygon()
,
point_in_JamPolygon()
,
polyclip_to_JamPolygon()
,
polygon_circles()
,
polygon_ellipses()
,
sample_JamPolygon()
,
split_JamPolygon()
,
union_JamPolygon()
,
update_JamPolygon()
DEdf <- data.frame(check.names=FALSE,
name=c("D", "E"),
x=I(list(
c(-3, 3, 3, 0, -3),
c(-4, 2, 2, -4))),
y=I(list(
c(-3, -3, 1.5, 4, 1.5),
c(-2, -2, 4, 4))),
fill=c("#FFD70055", "#B2222255"))
jp <- new("JamPolygon", polygons=DEdf)
plot(jp)
jp2 <- nudge_JamPolygon(jp, nudge=list(D=c(10, 0)));
jp_jp2 <- rbind2(jp2, buffer_JamPolygon(jp2));
plot(jp_jp2,
border.lty=c(1, 1, 2),
fill=c(NA, NA, "gold"));
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.