geom_horizon | R Documentation |
A horizon plot breaks the Y dimension down using colours. This is useful
when visualising y values spanning a vast range and / or trying to highlight
outliers without losing context of the rest of the data.
Horizon
plots are best viewed in an apsect ratio of very low vertical length.
geom_horizon(
mapping = NULL,
data = NULL,
show.legend = TRUE,
inherit.aes = TRUE,
na.rm = TRUE,
bandwidth = NULL,
...
)
GeomHorizon
stat_horizon(
mapping = NULL,
data = NULL,
geom = "horizon",
show.legend = TRUE,
inherit.aes = TRUE,
na.rm = TRUE,
bandwidth = NULL,
...
)
StatHorizon
An object of class GeomHorizon
(inherits from GeomArea
, GeomRibbon
, Geom
, ggproto
, gg
) of length 4.
An object of class StatHorizon
(inherits from Stat
, ggproto
, gg
) of length 5.
x
, y
, fill
. fill
defaults to ..band..
which is
the band number the current data fill area belongs in.
bandwidth
, to dictate the span of a band.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.