Skip to contents

This function plots a dataframe using the gridExtra::tableGrob function.

Usage

plot_df(df, plot_title = NULL, with_colors = TRUE)

Arguments

df

DATAFRAME : the dataframe to plot (no default)

plot_title

CHARACTER : a title for the plot (default to NULL)

with_colors

BOOLEAN : if the dataframe contains a "color" column, whether to display the colors as a colored dot at the beginning of each row (default to TRUE, except if the dataframe does not contain the column)

Value

A patchwork object