# NOT RUN {
library(officer)
ft <- flextable( head(iris, n = 10 ))
ft <- compose(ft, j = 1,
value = as_paragraph(
minibar(value = Sepal.Length, max = max(Sepal.Length)),
" ",
as_chunk( Sepal.Length, formatter = formatC,
props = fp_text(color = "orange") ),
" blah blah"
),
part = "body")
ft <- autofit(ft)
ft
# }
Run the code above in your browser using DataCamp Workspace