visualize_summary: Put the summary in a DT for compact, useful and hopefully...

View source: R/summarize_data.R

visualize_summaryR Documentation

Put the summary in a DT for compact, useful and hopefully pretty visualization

Description

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.

Usage

visualize_summary(summary_df)

Arguments

summary_df

Details

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#'

Value

a DT datatables htmlwidget object


edalfon/efun documentation built on June 23, 2024, 4:17 a.m.