move_box | R Documentation |
This function can be used to move the box to a given position with
editGrob changing the x
and y
value.
move_box(obj, x = NULL, y = NULL, pos_type = c("absolute", "relative"))
obj |
A |
x |
A unit element or a number that can be converted to |
y |
A unit element or a number that can be converted to |
pos_type |
If the provided coordinates are |
A box object with updated x and y coordinates.
fg <- textbox(text = "This is a test")
fg2 <- move_box(fg, 0.3, 0.3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.