moveBox {Gmisc} | R Documentation |
Move a boxGrob
Description
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.
Usage
moveBox(
element,
x = NULL,
y = NULL,
space = c("absolute", "relative"),
just = NULL
)
Arguments
element |
A |
x |
A |
y |
A |
space |
We can provide |
just |
The justification of an argument as used by |
Value
The element with updated
See Also
Other flowchart components:
align
,
boxGrob()
,
boxPropGrob()
,
connectGrob()
,
coords()
,
distance()
,
spread
Examples
library(grid)
grid.newpage()
box <- boxGrob("A simple box", x = .5, y = .8)
moveBox(box, x = -.2, space = "relative")