element_textbox | R Documentation |
Code grabbed from the ggtext
package. See the original code at:
https://github.com/wilkelab/ggtext
This is used to create a text box around the text, primarily to be used in CorPairsPlot
.
element_textbox(
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,
lineheight = NULL,
margin = NULL,
padding = NULL,
width = NULL,
height = NULL,
minwidth = NULL,
maxwidth = NULL,
minheight = NULL,
maxheight = NULL,
r = NULL,
orientation = NULL,
color = NULL,
box.color = NULL,
debug = FALSE,
inherit.blank = FALSE
)
## S3 method for class 'element_textbox'
element_grob(
element,
label = "",
x = NULL,
y = NULL,
family = NULL,
face = NULL,
colour = NULL,
size = NULL,
hjust = NULL,
vjust = NULL,
lineheight = NULL,
margin = NULL,
...
)
family |
Font family |
face |
Font face |
size |
Font size (in pt) |
colour , color |
Text color |
fill |
Fill color of the enclosing box |
box.colour , box.color |
Line color of the enclosing box (if different from the text color) |
linetype |
Line type of the enclosing box (like |
linewidth |
Line width of the enclosing box (measured in mm, just like |
hjust |
Horizontal justification |
vjust |
Vertical justification |
halign |
Horizontal justification |
valign |
Vertical justification |
lineheight |
Line height, in multiples of the font size |
padding , margin |
Padding and margins around the text box.
See |
width , height |
Unit objects specifying the width and height
of the textbox, as in |
minwidth , minheight , maxwidth , maxheight |
Min and max values for width and height. Set to NULL to impose neither a minimum nor a maximum. |
r |
Unit value specifying the corner radius of the box |
orientation |
Orientation of the text box. See |
debug |
Not implemented. |
inherit.blank |
See |
element |
A theme element created by |
label |
Text to display in the textbox. |
x , y |
Position of the textbox. |
... |
Other arguments passed to |
A ggplot2 theme element that can be used inside a ggplot2::theme()
call.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.