Learn R Programming

flextable (version 0.3.0)

rotate: rotate cell text

Description

apply a rotation to cell text

Usage

rotate(x, i = NULL, j = NULL, rotation, align = "center", part = "body")

Arguments

x

a flextable object

i

rows selection

j

columns selection

rotation

one of "lrtb", "tbrl", "btlr"

align

one of "center" or "top" or "bottom"

part

partname of the table (one of 'all', 'body', 'header')

Examples

Run this code
# NOT RUN {
ft <- flextable(mtcars)
ft <- rotate(ft, rotation = "lrtb", align = "top", part = "header")
# }

Run the code above in your browser using DataLab