View source: R/summarize_data.R
visualize_summary | R Documentation |
This function takes as argument a summary data.frame as returned by
summarize_df
, which contains all the information extracted from the
original data.frame to be presented in the DT summary.
visualize_summary(summary_df)
summary_df |
We take advantage of DT to:
style columns with color bars to easilly pinpoint variables with many/few NAs and high/low cardinality variables
Include tooltips in several places to put more information available, without using space on the table (not using the datatables ellipsis plugin, though. Some cases would be kind of hacky, so it ends up being cleaner just changing the content of the data directly to include tooltips)
of course, enable sorting by the different stats
and we use sparkline
to include inline histograms for each variable#'
a DT datatables htmlwidget object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.