Theme element that enables markdown text.
element_markdown(
family = NULL,
face = NULL,
size = NULL,
colour = NULL,
fill = NULL,
box.colour = NULL,
linetype = NULL,
linewidth = NULL,
hjust = NULL,
vjust = NULL,
halign = NULL,
valign = NULL,
angle = NULL,
lineheight = NULL,
margin = NULL,
padding = NULL,
r = NULL,
color = NULL,
box.color = NULL,
align_widths = NULL,
align_heights = NULL,
rotate_margins = NULL,
debug = FALSE,
inherit.blank = FALSE
)
Font family
Font face
Font size
Text color
Fill color of the enclosing box
Line color of the enclosing box (if different from the text color)
Line type of the enclosing box (like lty
in base R)
Line width of the enclosing box (measured in mm, just like size
in
ggplot2::element_line()
).
Horizontal justification
Vertical justification
Horizontal justification
Vertical justification
Angle (in degrees)
Line height
Padding and margins around the text box.
See gridtext::richtext_grob()
for details.
Unit value specifying the corner radius of the box
Should multiple elements be aligned by their
widths or height? See gridtext::richtext_grob()
for details.
Should margins get rotated in frame with rotated text?
If TRUE
, the margins are applied relative to the text direction. If FALSE
,
the margins are applied relative to the plot direction, i.e., the top margin,
for example, is always placed above the text label, regardless of the direction
in which the text runs. The default is FALSE
, which mimics the behavior of
element_text()
.
Draw a debugging box around each label
See ggplot2::margin()
for details.
A ggplot2 theme element that can be used inside a ggplot2::theme()
call.
gridtext::richtext_grob()
, element_textbox()
, geom_richtext()