A short tick per observation along the panel edges, showing the raw values behind a density, smooth, or scatter.
geom_rug(
mapping = NULL,
data = NULL,
sides = NULL,
length = NULL,
color = NULL,
linewidth = NULL,
alpha = NULL
)A Layer to add with +.
ggnext(cars, aes(speed, dist)) + geom_point() + geom_rug()
#> <ggnext plot>
#> data: 50 x 2
#> aes: x = speed, y = dist
#> layers: 2
#> coord: cartesian
#> mode: static