Creates a enhanced HTML representation of a DTU table. The table can be (color) formatted individually by providing column_formatters
.
Also automatically links columns of plot names, to be viewable in the table. Currently you are not allowed to provide a column formatter for plot columns.
plot_dtu_table( dturtle, columns = NULL, column_formatters = list(), order_by = NULL, num_digits = NULL, num_digits_format = NULL, min_page_length = 25, savepath = NULL, create_table_image = FALSE, ... )
dturtle |
|
---|---|
columns | Optionally subset the existing |
column_formatters | Named list of column_formatters, specifying a formatter function for every column that shall be formatted.
The formatter functions are either from this package like |
order_by | One or multiple columns to order the table by. Must be a vector of column names, descending order can be achieved by prepending a '-' (e.g. |
num_digits | Number of digits, numerical columns shall be formatted to. Can be a single number to apply to all numerical columns, or a number for each numerical column (in their order). |
num_digits_format | Digit format string, as in |
min_page_length | Specify the minimal number of items, available to display in the table. Will be used as default number of items. |
savepath | Specify save path, if the HTML table shall be saved to disk. The same path is used to create a table image, if |
create_table_image | Set number of table rows for optionally saving a image representation of the subsetted HTML table. Utilizes the package |
... | Arguments passed on to
|
A datatables object, if no savepath is provided.
The table can optionally also be saved as an image ('.png'), by specifying the wanted number of rows to create_table_image.