Draw an html table using plotly
Usage
draw_table(
x,
.ddSci = TRUE,
main = NULL,
main_col = "black",
main_x = 0,
main_xanchor = "auto",
fill_col = "#18A3AC",
table_bg = "white",
bg = "white",
line_col = "white",
lwd = 1,
header_font_col = "white",
table_font_col = "gray20",
font_size = 14,
font_family = "Helvetica Neue",
margin = list(l = 0, r = 5, t = 30, b = 0, pad = 0)
)
Arguments
- x
data.frame: Table to draw
- .ddSci
Logical: If TRUE, apply ddSci to numeric columns.
- main
Character: Table tile.
- main_col
Color: Title color.
- main_x
Float [0, 1]: Align title: 0: left, .5: center, 1: right.
- main_xanchor
Character: "auto", "left", "right": plotly's layout xanchor for title.
- fill_col
Color: Used to fill header with column names and first column with row names.
- table_bg
Color: Table background.
- bg
Color: Background.
- line_col
Color: Line color.
- lwd
Float: Line width.
- header_font_col
Color: Header font color.
- table_font_col
Color: Table font color.
- font_size
Integer: Font size.
- font_family
Character: Font family.
- margin
List: plotly's margins.