| beezdemand_empirical_methods | R Documentation |
Methods for printing, summarizing, and visualizing objects of class
beezdemand_empirical created by get_empirical_measures().
## S3 method for class 'beezdemand_empirical'
print(x, ...)
## S3 method for class 'beezdemand_empirical'
summary(object, ...)
## S3 method for class 'beezdemand_empirical'
plot(x, type = "histogram", ...)
x, object |
A |
... |
Additional arguments passed to plotting functions |
type |
Character string specifying plot type. Options:
|
Displays a compact summary showing the number of subjects analyzed and a preview of the empirical measures table.
Provides extended information including:
Data summary (subjects, zero consumption patterns, completeness)
Descriptive statistics for each empirical measure (min, median, mean, max, SD)
Missing data patterns
Creates visualizations of empirical measures across subjects.
Histogram type (default):
Six-panel faceted plot showing distribution of each measure
Helps identify central tendencies and outliers
Uses modern beezdemand styling
Matrix type:
Scatterplot matrix (pairs plot) showing relationships between measures
Useful for identifying correlated demand metrics
Lower triangle: scatterplots with smoothed trend lines
Diagonal: density plots
Upper triangle: correlation coefficients
print() - Returns the object invisibly (called for side effects)
summary() - Returns a list with extended summary information
plot() - Returns a ggplot2 object
get_empirical_measures()
data(apt, package = "beezdemand")
emp <- get_empirical_measures(apt)
# Print compact summary
print(emp)
# Extended summary
summary(emp)
# Histogram of measure distributions
plot(emp)
# Scatterplot matrix
plot(emp, type = "matrix")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.