Learn R Programming

rflexscan

The rflexscan package provides functions and classes to analyze spatial count data using the flexible spatial scan statistic developed by Tango and Takahashi (2005) on R. The original FleXScan software developed by Takahashi et al. is also available at https://sites.google.com/site/flexscansoftware/home.

Project page: https://tkhrotn.github.io/rflexscan/

CRAN: https://cran.r-project.org/package=rflexscan

Install

# Install from CRAN
install.packages("rflexscan")

# Install development version from GitHub:
install.packages("devtools")
devtools::install_github("tkhrotn/rflexscan")

References

  • Tango T. and Takahashi K. (2005). A flexibly shaped spatial scan statistic for detecting clusters, International Journal of Health Geographics 4:11.
  • Takahashi K, Yokoyama T and Tango T. (2010). FleXScan v3.1: Software for the Flexible Scan Statistic. National Institute of Public Health, Japan.

Copy Link

Version

Install

install.packages('rflexscan')

Monthly Downloads

217

Version

1.2.0

License

GPL-3

Maintainer

Takahiro Otani

Last Published

November 28th, 2025

Functions in rflexscan (1.2.0)

runFleXScan

Run main routine of FleXScan.
summary.rflexscan

Summarizing rflexscan results
print.rflexscanCluster

Print rflexscanCluster object
print.rflexscan

Print rflexscan object
print.summary.rflexscan

Print summary of flexscan results
rflexscan-package

Analyze spatial count data using the flexible spatial scan statistic
plot.rflexscan

Graph plotting of flexscan results
rflexscan

Detect spatial disease clusters using the flexible/circular scan statistic
choropleth

Display choropleth map