ggInterval extends ggplot2 for interval-valued data. It provides
plotting functions, data conversion helpers, and examples for symbolic data
analysis workflows where each unit is described by lower and upper bounds
rather than a single point.
The package was previously released as ggESDA. The current development line focuses on interval-valued visualization and companion tools for building interval data from classical tables.
ggInterval_corrplot().ggInterval_lineplot() for interval time-series style displays, with
ggInterval_tsplot() retained as a backward-compatible alias.Install the CRAN release:
install.packages("ggInterval")
Install the latest GitHub release:
# install.packages("remotes")
remotes::install_github("hanmingwu1103/ggInterval@v0.2.5")
Install the current development version:
# install.packages("remotes")
# remotes::install_github("hanmingwu1103/ggInterval")
install.packages("ggInterval", repos = c('https://hanmingwu1103.r-universe.dev', 'https://cloud.r-project.org'))
library(ggInterval)
# Load the built-in interval-valued face measurements
data(facedata)
# Scatter plot
ggInterval_scatterplot(facedata, aes(x = AD, y = BC))
# Histogram
ggInterval_hist(facedata, aes(x = AD), method = "equal-bin", bins = 10)
# 2D histogram with non-equidistant bins
ggInterval_2Dhist(
facedata,
aes(x = AD, y = BC),
method = "unequal-bin"
)$plot
# Correlation heatmap
ggInterval_corrplot(facedata, method = "BG", triangle = "lower")
| Function | Description |
|---|---|
ggInterval_scatterplot() |
Scatter plot for two interval-valued variables |
ggInterval_scatterMatrix() |
Scatter plot matrix for interval-valued variables |
ggInterval_3Dscatterplot() |
3D scatter plot for three interval-valued variables |
ggInterval_hist() |
Histogram with equal-bin or unequal-bin construction |
ggInterval_2Dhist() |
2D histogram with equal-bin or unequal-bin construction |
ggInterval_2DhistMatrix() |
Matrix of 2D histograms |
ggInterval_MMplot() |
Min-max plot |
ggInterval_CRplot() |
Center-range plot |
ggInterval_indexplot() |
Index plot |
ggInterval_indexImage() |
Index image plot |
ggInterval_boxplot() |
Boxplot for interval-valued variables |
ggInterval_radarplot() |
Radar plot |
ggInterval_lineplot() |
Line plot for interval-valued data |
ggInterval_PCA() |
PCA display for interval-valued data |
ggInterval_corrplot() |
Correlation heatmap for interval-valued variables |
| Function | Description |
|---|---|
classic2sym() |
Convert classical data to interval-valued data |
RSDA2sym() |
Convert RSDA symbolic objects to ggInterval format |
Representative figures generated from LaTeX/S2_File_ggInterval_examples.R.
Interval Scatter PlotggInterval_scatterplot()
|
Scatter MatrixggInterval_scatterMatrix()
|
2D Histogram MatrixggInterval_2DhistMatrix()
|
Index ImageggInterval_indexImage()
|
Customized Index PlotggInterval_indexplot() with k-means groups
|
Radar PlotggInterval_radarplot()
|
PCA DisplayggInterval_PCA() / PCA score intervals
|
Correlation HeatmapggInterval_corrplot()
|
Interval-Valued Line PlotggInterval_lineplot()
|
|
Use the installed package citation metadata:
citation("ggInterval")
The package citation is shipped with inst/CITATION and points to the
canonical CRAN package URL and DOI.
GPL (>= 2)