Skip to contents

Draw textbox

Usage

textBox(
  string,
  color = "black",
  lcolor = "red",
  bg = "cornsilk",
  lwd = 1,
  width = 10,
  bold = FALSE,
  italic = FALSE,
  fontsize = 11,
  space = 1.5,
  fontname
)

Arguments

string

string

color

font color

lcolor

line color

bg

background color

lwd

numeric line width

width

numeric box width

bold, italic

logical

fontsize

numeric font size

space

space between lines

fontname

name of font

Value

A flextable

Examples

string="Good Morning!"
textBox(string,italic=TRUE)
#> a flextable object.
#> col_keys: `d1` 
#> header has 0 row(s) 
#> body has 1 row(s) 
#> original dataset sample: 
#> [1] "Good Morning!"