Draws a box of size dim=c(height, width)
at yx=c(row,col)
.
box_at(
yx = c(1, 1),
dim = NULL,
text = c("|", "|", "-", "-", rep("+", 4)),
fg = NA,
bg = NA,
attr = NA,
fill = NA,
fill.bg = NA,
fill.fg = NA,
fill.attr = NA
)
starting console row and column of top-left corner of box
box dimensions in c(height, width)
. If NA
, defaults to the terminal's screen width.
repeated character used for box. text
can either be a single character or a vector of 8 characters (left side, right side, top, bottom, 4 corners: upper left, upper right, lower left, lower right).
foreground color. See fg_on
for more details.
background color. See bg_on
for more details.
border text attributes. See attr_on
for details.
character object to fill box. Only the first character in the first element is used. If NA
(the default), the box is not filled.
background color of the fill character.
foreground color of the fill character.
text attributes of the fill character.
NULL
Other drawing functions:
draw_arc()
,
draw_bezier()
,
draw_circle()
,
draw_ellipse()
,
draw_fn()
,
draw_lerp()
,
draw_path()
,
draw_ray()
,
draw_rect()
,
draw_shape()
,
fill_circle()
,
fill_ellipse()
,
fill_rect()
,
fill_shape()
,
grid_at()
,
grid_mat()
,
hline_at()
,
hline()
,
vline_at()
,
vline()
# NOT RUN {
box_at(yx=c(4,4), dim=c(5,10), text="X")
# }
Run the code above in your browser using DataLab