| box_at {cursr} | R Documentation |
Draw Box
Description
Draws a box of size dim=c(height, width) at yx=c(row,col).
Usage
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
)
Arguments
yx |
starting console row and column of top-left corner of box |
dim |
box dimensions in |
text |
repeated character used for box. |
fg |
foreground color. See |
bg |
background color. See |
attr |
border text attributes. See |
fill |
character object to fill box. Only the first character in the first element is used. If |
fill.bg |
background color of the fill character. |
fill.fg |
foreground color of the fill character. |
fill.attr |
text attributes of the fill character. |
Value
NULL
See Also
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()
Examples
box_at(yx=c(4,4), dim=c(5,10), text="X")