Generate XMR Control Chart Data from Time-Series Data

XMRs combine X-Bar control charts and Moving Range control charts. These functions also will recalculate the reference lines when significant change has occurred.


xmrr is a package designed to generate and visualize control charts from time-series data.


For the development version:


For the official CRAN version:



XMRS have two key asssumptions:

  • Measurements of value happen over sequential time.

  • Each unit of time has only one measurement of value.

This snippet shows the basic syntax:

Year <- seq(2001, 2009, 1)
Measure <-  runif(length(Year))
df <- data.frame(Year, Measure)
xmr(df, "Measure", recalc = T)

For information about errors and problems, check the [problems and solutions file.](file:///Q:/StrategicResearch/Rules%20and%20Procedures%20Folder/Checklists%20and%20procedures/Procedure%20Manual/Data%20Analysis/Pages/issues.html#xmrr)


xmrr 1.0.36

  • Added a file to track changes to the package.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


1.1.1 by Alex Zanidean, 2 years ago

Report a bug at

Browse source code at

Authors: Alex Zanidean [aut, cre]

Documentation:   PDF Manual  

GPL-3 license

Imports dplyr, tidyr, ggplot2, purrr, rlang, tibble, qpdf

Suggests testthat, knitr, rmarkdown

See at CRAN