CoordHourglass {gghourglass} | R Documentation |
Hourglass coordinates for a ggplot
Description
A Cartesian coordinate system that adds sensible
guides to axes in a geom_hourglass()
layer. It is added automatically
to geom_hourglass()
. There is no need to explicitly add it to a ggplot,
unless you wish to tweak the coordinate system.
Usage
CoordHourglass
coord_hourglass(
xlim = NULL,
ylim = NULL,
expand = TRUE,
default = FALSE,
clip = "on",
date_labels = "%H:%M",
layer = NULL,
...
)
Arguments
xlim , ylim |
Limits for the x and y axes. |
expand |
If |
default |
Is this the default coordinate system? If |
clip |
Should drawing be clipped to the extent of the plot panel? A
setting of |
date_labels |
Formating string for formatting the time
labels on the axis. By default it is |
layer |
This argument allows you to pass the |
... |
Arguments passed as extra |
Format
An object of class CoordHourglass
(inherits from CoordCartesian
, Coord
, ggproto
, gg
) of length 3.
Value
Returns a ggproto
object inheriting from coord_cartesian()
.
Author(s)
Pepijn de Vries
Examples
coord_hourglass()