venndir_label_style | R Documentation |
venndir label style
venndir_label_style(
venndir_output,
show_labels = c("Nsc"),
label_preset = c("none", "main inside", "main outside", "outside", "all outside",
"concept", "meme", "items", "main items", "main count items", "custom"),
label_style = c("basic", "box", "fill", "fill_box", "shaded", "shaded_box", "lite",
"lite_box"),
lite = "#FFEEAABB",
bg = "white",
set = c("outside", "inside", "none"),
overlap = c("none", "inside", "outside"),
percent = c("none", "inside", "outside"),
count = c("inside", "outside", "ifneeded", "detect", "none"),
signed = c("inside", "outside", "ifneeded", "detect", "none"),
items = c("none", "inside"),
percent_delim = "<br>",
show_items = c("none"),
max_items = 3000,
inside_percent_threshold = 0,
label_types = c("main", "signed"),
extra_styles = list(percent = c("***", "***")),
show_zero = TRUE,
sep = "&",
useGrey = 15,
verbose = FALSE,
...
)
show_labels |
The label types are defined below:
|
label_preset |
DEPRECATED in favor of |
label_style |
|
lite |
|
bg |
|
set , overlap , percent , count , signed , items |
DEPRECATED in favor
of |
percent_delim |
|
show_items |
|
max_items |
|
inside_percent_threshold |
|
label_types |
|
extra_styles |
|
show_zero |
|
sep |
|
useGrey |
|
verbose |
|
... |
additional arguments are passed to internal functions such
as |
This function applies a label style to venndir()
output,
overwriting the existing label style as necessary.
This function adjusts the label text color for contrast with
make_color_contrast()
, which is useful when positioning
the label on top of dark or bright colors. If the label
is positioned outside the sp
polygons, the text is assumed
to be on a white background, using argument bg
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.