
Package index
-
ggpmiscggpmisc-package - ggpmisc: Miscellaneous Extensions to 'ggplot2'
Statistics
Fitted models, tests and summaries enrich data visualizations allowing deeper understanding.
Model fitting y ~ x
Display estimates from regression models graphically and as textual annotations.
-
stat_correlation() - Correlation test annotations
-
stat_ma_eq()stat_ma_line() - Model II prediction and annotations
-
stat_poly_eq()stat_poly_line() - Fitted model prediction and annotations
-
stat_quant_band()stat_quant_eq()stat_quant_line() - Quantile regression predictions and annotations
-
stat_fit_deviations()stat_fit_fitted()stat_fit_residuals() - Residuals and fitted values from model fit
-
use_label() - Assemble label and map it
Model fitting ~ x
Display estimates from univariate distributions and their mixes graphically and as textual annotations.
-
stat_distrmix_eq()stat_distrmix_line() - Mixture model prediction and annotations
ANOVA and multiple comparisons
Display test results and estimates as inset tables and as textual annotations.
-
stat_fit_tb() - Fitted-model summary and ANOVA tables
-
stat_multcomp() - Labels for pairwise multiple comparisons
Model fitting with helpers from ‘broom’
Support additional types of models with no pre-built text strings..
-
stat_fit_augment() - Augment data with fitted values and statistics
-
stat_fit_glance() - One row summary data frame for a fitted model
-
stat_fit_tidy() - One row data frame with fitted parameter estimates
-
stat_peaks()stat_valleys() - Local maxima (peaks) or minima (valleys)
-
stat_spikes() - Local narrow maxima or minima (spikes)
Scales
Scales control de mapping of data to aesthetics. These scales are tailored for specific types of plots.
-
scale_x_logFC()scale_y_logFC() - Position scales for log fold change data
-
scale_colour_logFC()scale_color_logFC()scale_fill_logFC() - Colour and fill scales for log fold change data
-
FC_format()FC_plain() - Formatter for fold change tick labels
-
FC_name() - Fold change- axis labels
-
scale_y_Pvalue()scale_y_FDR()scale_x_Pvalue()scale_x_FDR() - Convenience scale for P-values
-
scale_colour_outcome()scale_color_outcome()scale_fill_outcome() - Colour and fill scales for ternary outcomes
-
scale_shape_outcome() - Shape scale for ternary outcomes
-
outcome2factor()threshold2factor() - Convert numeric ternary outcomes into a factor
-
xy_outcomes2factor()xy_thresholds2factor() - Convert two numeric ternary outcomes into a factor
-
symmetric_limits() - Expand a range to make it symmetric
Utilities
Low level functions used to build some of the functions above, but possibly useful also in other contexts.
-
check_output_type() - Validate output type
-
sprintf_dm()value2char() - Format numeric values as strings
-
plain_label()italic_label()bold_label()p_value_label()f_value_label()t_value_label()z_value_label()S_value_label()mean_value_label()var_value_label()sd_value_label()se_value_label()r_label()rr_label()adj_rr_label()rr_ci_label()r_ci_label() - Format numbers as character labels
-
coefs2poly_eq() - Format a polynomial as an equation
-
poly2character() - Convert a polynomial into character string
-
typeset_numbers() - Typeset/format numbers preserving trailing zeros
-
find_peaks()find_valleys() - Find local or global maxima (peaks) or minima (valleys)
-
find_spikes() - Find spikes in vector
-
coef(<lmodel2>) - Extract Model Coefficients
-
confint(<lmodel2>) - Confidence Intervals for Model Parameters
-
predict(<lmodel2>) - Model Predictions
-
check_poly_formula() - Validate model formula as a polynomial
-
keep_tidy()keep_glance()keep_augment() - Tidy, glance or augment an object keeping a trace of its origin
-
swap_xy() - Swap x and y in a formula