The goal of ggpaver is to facilitate the use of pavement
plots in R as a
ggplot2 extension. Pavement plots present univariate continuous data
as tiles ranging between the minimal and maximal values, with each tile
representing an equal share of the data.
You can install the development version of ggpaver from
GitHub with:
# install.packages("pak")
pak::pak("git-dwilliams/ggpaver")library(ggplot2)
library(ggpaver)
ggplot(diamonds, aes(x = price, y = cut)) +
geom_pavement(bins = 16) +
labs(
title = "A Pavement Plot of Diamond Price (USD) by Cut",
subtitle = "Each Tile Represents an Equal Share of its Group's Data"
)Check out Aaron Schumacher’s original (and much more mature) implementation in Python:
pip install pavement