Learn R Programming

pcutils (version 0.2.8)

sanxian: Three-line table

Description

Three-line table

Usage

sanxian(
  df,
  digits = 3,
  nrow = 10,
  ncol = 10,
  fig = FALSE,
  mode = 1,
  background = "#D7261E",
  ...
)

Value

a ggplot

Arguments

df

a data.frame

digits

how many digits should remain

nrow

show how many rows

ncol

show how many columns

fig

output as a figure

mode

1~2

background

background color

...

additional arguments e.g.(rows=NULL)

Examples

Run this code
# \donttest{
if (require("kableExtra")) {
  data(otutab)
  sanxian(otutab)
}
# }

Run the code above in your browser using DataLab