plotRidges | R Documentation |
Plot ridges density plots for numeric matrix input
plotRidges(
x,
xScale = c("none", "-log10", "log10"),
xlab = NULL,
ylab = NULL,
title = ggplot2::waiver(),
subtitle = ggplot2::waiver(),
caption = ggplot2::waiver(),
xlim = NULL,
color_sub = NULL,
rel_min_height = 0,
bandwidth = NULL,
adjust = 1,
scale = 1,
share_bandwidth = TRUE,
...
)
x |
|
xScale |
|
xlab , ylab |
|
title , subtitle , caption |
|
xlim |
passed to |
color_sub |
|
rel_min_height |
|
bandwidth |
|
adjust |
|
scale |
|
share_bandwidth |
|
... |
additional arguments are ignored. |
This function is a convenient wrapper for ggridges::geom_density_ridges2()
,
intended to be analogous to plotPolygonDensity()
which differs
by plotting each item in a separate plot panel using base graphics.
This function plots each item as a ridgeline plot in the same
plot window using ggplot2::ggplot()
.
Other jam plot functions:
adjustAxisLabelMargins()
,
coordPresets()
,
decideMfrow()
,
drawLabels()
,
getPlotAspect()
,
groupedAxis()
,
imageByColors()
,
imageDefault()
,
minorLogTicksAxis()
,
nullPlot()
,
plotPolygonDensity()
,
plotSmoothScatter()
,
shadowText_options()
,
shadowText()
,
showColors()
,
smoothScatterJam()
,
sqrtAxis()
,
usrBox()
# multiple columns
set.seed(123);
xm <- do.call(cbind, lapply(1:4, function(i){rnorm(2000)}))
plotRidges(xm)
set.seed(123);
x <- rnorm(2000)
plotRidges(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.