plotTable: Plot a table with row names and title

View source: R/fcn_plots.R

plotTableR Documentation

Plot a table with row names and title

Description

Restriction: currently, the footer will be cropped at the table width.

Usage

plotTable(
  data,
  title = "",
  footer = "",
  col_names = colnames(data),
  fill = c("grey90", "grey70"),
  col = "black",
  just = "centre"
)

Arguments

data

A data.frame with columns as described above

title

Table title

footer

Footer text

col_names

Column names for Table

fill

Fill pattern (by row)

col

Text color (by column)

just

(ignored)

Value

gTree object with class 'PTXQC_table'

Examples

  data = data.frame(raw.file = letters[1:4],
                    id.rate = 3:6)
  plotTable(data, 
            title = "Bad files",
            footer = "bottom", 
            col_names = c("first col", "second col"),
            col=c("red", "green"))


PTXQC documentation built on May 29, 2024, 9:26 a.m.