This function implements Phase 2 of the AI reporting architecture. It generates a statistical profile of the data used in the plot to provide context for the AI.
Value
A list containing:
- distributions
A
skim_dfobject summarizing mapped variables.- correlations
A list of correlation coefficients (if applicable).
Details
It performs two main tasks:
Distribution Analysis: Uses
skimr::skim()to summarize variables mapped in the plot.Correlation Check: For scatterplots (
geom_point), it calculates Pearson correlations to help the AI identify relationships.