table2Figure: Convert a text table to figure

View source: R/Common.R

table2FigureR Documentation

Convert a text table to figure

Description

Convert a text table to figure

Usage

table2Figure(
  data,
  rowname = TRUE,
  ttheme = "blank",
  top.black.line = 1:2,
  bottom.black.line = 1,
  subtitle = NULL,
  main.title = NULL,
  footnote = NULL,
  vline = NULL
)

Arguments

rowname

Default TRUE

ttheme

Default blank. character string the table style/theme. The available themes are illustrated in the ggtexttable-theme.pdf file. Allowed values include one of c("default", "blank", "classic", "minimal", "light", "lBlack", "lBlue", "lRed", "lGreen", "lViolet", "lCyan", "lOrange", "lBlackWhite", "lBlueWhite", "lRedWhite", "lGreenWhite", "lVioletWhite", "lCyanWhite", "lOrangeWhite", "mBlack", "mBlue", "mRed", "mGreen", "mViolet", "mCyan", "mOrange", "mBlackWhite", "mBlueWhite", "mRedWhite", "mGreenWhite", "mVioletWhite", "mCyanWhite", "mOrangeWhite" ). Note that, l = "light"; m = "medium"

top.black.line

Default 1:2. Black line. From top

bottom.black.line

Default 1. Black line From bottom

subtitle

Subtitle if you want to show

main.title

Main title if you want to show

footnote

Italic footnote at botton if you want to show

vline

Examples

data(iris)
loonR::table2Figure( head(iris), main.title = "IRIS",  footnote = "Here is footnote")

ProfessionalFarmer/loonR documentation built on Oct. 9, 2024, 9:56 p.m.