Skip to contents

A thin ggplot2::CoordCartesian subclass that automatically constrains the panel aspect ratio when the x-axis is a datetime (POSIXct) so that case rectangles look approximately square instead of tall, narrow sticks on typical figure dimensions. For Date / numeric x axes it behaves exactly like coord_cartesian() (no aspect is imposed).

Usage

coord_epicurve(clip = "on")

Arguments

clip

Should drawing be clipped to the panel extent? Passed through to ggplot2::CoordCartesian. Defaults to "on".

Value

A ggproto ggplot2::CoordCartesian subclass.

Details

geom_epicurve() adds coord_epicurve() automatically; users can opt out with auto_aspect = FALSE, or override by adding their own coordinate system (e.g. coord_cartesian()) after the geom.