Learn R Programming

⚠️There's a newer version (0.6.0) of this package.Take me there.

ggpmisc

Package 'ggpmisc' (Miscellaneous Extensions to 'ggplot2') is a set of extensions to R package 'ggplot2' (>= 2.2.1) useful when plotting diverse types of data.

Functions try_data_frame() and try_tibble() can be used to convert time series objects into data frames or tibbles suitable for plotting. To complement these functions ggplot methods for "ts" and "xts" classes are defined.

Two statistics automate finding the location and labeling peaks and/or valleys.

Several statistics are provided for annotations related to model fits: fitted polynomial equations as labels, fitted equations for other model fits including non-linear ones, highlighting deviations from a fitted curve, and plotting residuals on-the-fly.

Statistics are provided for filtering and/or tagging data from regions of plot panels with high/low densities of observations (the stats are designed to work nicely together with package 'ggrepel').

A set of functions facilitates the manipulation of layers in ggplot objects, allowing deletion of any existing layer, appending of new layers at any position, and modification of the order of the existing layers.

Another group of ggplot statistics and geometries which echo their data input to the R console and/or plot aim at easing debugging during development of new geoms and statistics (or learning how ggplot layers work).

Please, see the web site r4photobiology for details and update notices, and the docs site. Other packages, aimed at easing photobiology-related calculations including the quantification of biologically effective radiation in meteorology are available as part of a suite described at the same website.

The current release of 'ggpmisc' is available through CRAN for R (>= 3.3.0).

Copy Link

Version

Install

install.packages('ggpmisc')

Monthly Downloads

15,464

Version

0.2.17

License

GPL (>= 2)

Maintainer

Pedro Aphalo

Last Published

May 4th, 2018

Functions in ggpmisc (0.2.17)

GeomNull

Stat* Objects
ggpmisc-package

ggpmisc: Miscellaneous Extensions to 'ggplot2'
stat_poly_eq

Add a label for a fitted linear model to a plot.
stat_quadrat_counts

Count the number of observations in each quadrat of a plot.
find_peaks

Find local maxima or global maximum (peaks).
stat_debug_group

Print to console data received by the compute group function.
geom_debug

Geom which prints input data to console
ggplot

Create a new ggplot plot from time series data.
try_data_frame

Convert an R object containing observations into a tibble.
stat_debug_panel

Print to console data received by the compute panel function.
stat_fit_augment

Return the data augmented with fitted values and statistics.
stat_fit_residuals

Plot residuals from a model fit.
geom_null

A null geom or 'non-op' geom.
stat_fit_deviations

Plot residuals from fit as segments.
stat_fit_glance

Return one row summary data frame for a fitted model.
stat_dens2d_filter

Filter observations in high density regions.
delete_layers

Layer manipulation
edit_layers

Edit plot layer
stat_fit_tidy

Return one row data frame with fitted parameter estimates.
stat_dens2d_labels

Reset labels of observations in high density regions.
stat_peaks

Find and label local maxima (peaks) or minima (valleys).