geom_contour {ggplot2} | R Documentation |
Display contours of a 3d surface in 2d.
geom_contour(mapping = NULL, data = NULL, stat = "contour", position = "identity", lineend = "butt", linejoin = "round", linemitre = 1, na.rm = FALSE, ...)
mapping |
The aesthetic mapping, usually constructed
with |
data |
A layer specific dataset - only needed if you want to override the plot defaults. |
stat |
The statistical transformation to use on the data for this layer. |
position |
The position adjustment to use for overlappling points on this layer |
na.rm |
If |
... |
other arguments passed on to
|
lineend |
Line end style (round, butt, square) |
linejoin |
Line join style (round, mitre, bevel) |
linemitre |
Line mitre limit (number greater than 1) |
geom_contour
understands the following aesthetics (required aesthetics are in bold):
x
y
alpha
colour
linetype
size
weight
geom_density2d
: 2d density contours
# See stat_contour for examples