Three-line table

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

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)

Value

a ggplot

Examples

# \donttest{
if (require("kableExtra")) {
  data(otutab)
  sanxian(otutab)
}
#> Loading required package: kableExtra
#> Warning: there is no package called ‘kableExtra’
# }