-
-
Notifications
You must be signed in to change notification settings - Fork 98
/
Copy pathgeom_horizon.Rd
56 lines (50 loc) · 1.38 KB
/
geom_horizon.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/geom_horizon.r
\docType{data}
\name{geom_horizon}
\alias{geom_horizon}
\alias{GeomHorizon}
\alias{stat_horizon}
\alias{StatHorizon}
\title{Plot a time series as a horizon plot}
\format{
An object of class \code{GeomHorizon} (inherits from \code{GeomArea}, \code{GeomRibbon}, \code{Geom}, \code{ggproto}, \code{gg}) of length 4.
An object of class \code{StatHorizon} (inherits from \code{Stat}, \code{ggproto}, \code{gg}) of length 5.
}
\usage{
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
}
\description{
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.\cr \cr Horizon
plots are best viewed in an apsect ratio of very low vertical length.
}
\section{Aesthetics}{
\code{x}, \code{y}, \code{fill}. \code{fill} defaults to \code{..band..} which is
the band number the current data fill area belongs in.
}
\section{Other parameters}{
\code{bandwidth}, to dictate the span of a band.
}
\keyword{internal}