get_coords | R Documentation |
This function will get the coordinates of the textbox object.
get_coords(x)
x |
A textbox object |
A list of coordinates will return:
left |
Left (x-min) side coordinate. |
right |
Right (x-max) side coordinate. |
bottom |
Bottom (y-min) side coordinate. |
top |
Top (y-max) side coordinate. |
top.mid |
Coordinate vector of top middle, measured by grob. |
left.mid |
Coordinate vector of left middle, measured by grob. |
bottom.mid |
Coordinate vector of bottom middle, measured by grob. |
right.mid |
Coordinate vector of right middle, measured by grob. |
x |
X (center x) coordinate. |
y |
Y (center y) coordinate. |
width |
Width of the textbox, derived with |
height |
Height of the textbox, derived with |
half_width |
Half width of the box. |
half_height |
Half height of the box. |
fg <- textbox(text = "This is a test")
get_coords(fg)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.