View source: R/boxGrobs_move.R
moveBox | R Documentation |
Moves a boxGrob
/boxPropGrob
by modifying it's viewport
.
This can be useful if you want to create a series of boxes whose position are relative
to each other and depend on each box's width/height.
moveBox(
element,
x = NULL,
y = NULL,
space = c("absolute", "relative"),
just = NULL
)
element |
A |
x |
A |
y |
A |
space |
We can provide |
just |
The justification of an argument as used by |
The element with updated
Other flowchart components:
align
,
boxGrob()
,
boxPropGrob()
,
connectGrob()
,
coords()
,
distance()
,
spread
library(grid)
grid.newpage()
box <- boxGrob("A simple box", x = .5, y = .8)
moveBox(box, x = -.2, space = "relative")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.