ob_label | R Documentation |
ob_label class
ob_label(
label = character(0),
center = S7::class_missing,
angle = numeric(0),
alpha = numeric(0),
color = character(0),
family = character(0),
fill = character(0),
fontface = character(0),
hjust = numeric(0),
label.color = character(0),
label.margin = class_margin(ggplot2::margin(1, 1, 1, 1, "pt")),
label.padding = class_margin(ggplot2::margin(2, 2, 2, 2, "pt")),
label.r = numeric(0),
label.size = numeric(0),
lineheight = numeric(0),
polar_just = numeric(0),
nudge_x = numeric(0),
nudge_y = numeric(0),
size = numeric(0),
straight = logical(0),
text.color = character(0),
vjust = numeric(0),
style = S7::class_missing,
plot_point = FALSE,
position = 0.5,
spacing = numeric(0),
x = S7::class_missing,
y = S7::class_missing,
id = character(0),
...
)
label |
text label |
center |
ob_point indicating the center of the label |
angle |
angle of text |
alpha |
numeric value for alpha transparency |
color |
character string for color |
family |
font family |
fill |
character string for fill color |
fontface |
Can be plain, bold, italic, or bold.italic |
hjust |
horizontal justification. 0 means left justified, 1 means right justified, 0.5 means horizontally centered |
label.color |
Color of label outline. |
label.margin |
Amount of distance around label. A grid::unit vector of length four. Usually created with |
label.padding |
Amount of padding around label. A grid::unit vector of length four. Usually created with |
label.r |
Radius of rounded corners. Defaults to 0.15 lines. |
label.size |
Width of label outline. |
lineheight |
Height of line of text |
polar_just |
an angle, polar point, or point that alters hjust and vjust (polar polar_just not stored in style) |
nudge_x |
Horizontal adjustment to nudge labels by. |
nudge_y |
Vertical adjustment to nudge labels by. |
size |
numeric size |
straight |
logical. If TRUE, make bzpath label text straight instead of curved. |
text.color |
Color of label text. |
vjust |
vertical justification. 0 means bottom aligned, 1 means top aligned, 0.5 means vertically centered |
style |
a style list |
plot_point |
plot center ob_point (default = FALSE) |
position |
position (0 to 1). Used to position a label on an ob_segment, ob_arc, ob_path, or ob_bezier |
spacing |
letter spacing for labels used with ob_path and ob_bezier |
x |
x-coordinate of center point. If specified, overrides x-coordinate of |
y |
x-coordinate of center point. If specified, overrides y-coordinate of |
id |
character string to identify object |
... |
< |
ob_label object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.