print_color_df | R Documentation |
Print colorized text table
print_color_df(
df,
dfcolor = NULL,
dfinvert = NULL,
dfjustify = "centre",
header = FALSE,
padding = 2,
pad_type = 1,
comment = FALSE,
timeStamp = FALSE,
htmlOut = getOption("jam.htmlOut", FALSE),
debug = FALSE,
...
)
df |
|
dfcolor |
|
dfinvert |
|
dfjustify |
|
header |
|
padding |
|
comment , timeStamp |
|
... |
additional arguments are ignored. |
This utility function takes df
as a data.frame
input,
and prints colorized text output.
Colors are defined using dfcolor
provided as a data.frame
.
Colors can be inverted using dfinvert
that contains logical
TRUE
or FALSE
values, provided as a data.frame
.
Other venndir utility:
curate_venn_labels()
,
expand_range()
,
make_color_contrast()
,
make_venn_combn_df()
,
make_venn_test()
,
match_list()
,
modify_venndir_overlap()
,
nudge_venndir_label()
,
plot,Venndir,ANY-method
,
shrink_df()
,
three_point_angle()
,
venndir_legender()
,
venndir_to_df()
set.seed(2);
df <- matrix(sample(head(colors(), 151), 12), ncol=3);
dfinvert <- matrix(sample(c(FALSE, FALSE, TRUE), 12, replace=TRUE), ncol=3);
print_color_df(df, df, dfinvert);
print_color_df(df, df, dfinvert, padding=1);
colnames(df) <- c("left", "centre", "right");
print_color_df(df, df, dfinvert,
header=TRUE,
padding=4,
dfjustify=c("left", "centre", "right"));
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.