connect_box | R Documentation |
This function is used to create an arrow line to connect two boxes. User should provide the starting and ending side of the arrow.
connect_box(start, end, connect, type = c("s", "p"), name = NULL)
start |
Starting point of the arrow. |
end |
Ending point of the arrow. |
connect |
The connection of the box. It should be the combination of the
position. The |
type |
Should be one the |
name |
A character identifier of the line grob, passed to |
A lines grob with arrow.
fg1 <- textbox(text = "This is a test")
fg2 <- textbox(text = "This is an other test", 0.7, 0.2)
grid::grid.draw(fg1)
grid::grid.draw(fg2)
connect_box(fg1, fg2, connect = "bl", type = "p")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.