geom_contour can plot nice contours, it
doesn't work with the polygon geom. This stat makes some small manipulation
of the data to ensure that all contours are closed and also computes a new
int.level, which differs from
level (computed by
ggplot2::geom_contour) in that represents
the value of the
z aesthetic inside the contour instead of at the edge.
It also computes breaks globally instead of per panel, so that faceted plots
have all the same binwidth.
geom_contour_fill( mapping = NULL, data = NULL, stat = "ContourFill", position = "identity", ..., breaks = MakeBreaks(), bins = NULL, binwidth = NULL, kriging = FALSE, global.breaks = TRUE, na.fill = FALSE, show.legend = NA, inherit.aes = TRUE ) stat_contour_fill( mapping = NULL, data = NULL, geom = "polygon", position = "identity", ..., breaks = MakeBreaks(), bins = NULL, binwidth = NULL, global.breaks = TRUE, kriging = FALSE, na.fill = FALSE, show.legend = NA, inherit.aes = TRUE )
Set of aesthetic mappings created by
The data to be displayed in this layer. There are three options:
The statistical transformation to use on the data for this layer, as a string.
Position adjustment, either as a string, or the result of a call to a position adjustment function.
Other arguments passed on to
numeric vector of breaks
Number of evenly spaced breaks.
Distance between breaks.
Logical indicating whether to perform ordinary kriging before contouring. Use this if you want to use contours with irregularly spaced data.
Logical indicating whether
How to fill missing values.
logical. Should this layer be included in the legends?
The geometric object to use display the data
geom_contour_fill understands the following aesthetics (required aesthetics are in bold):
An ordered factor that represents bin ranges.
level, but automatically uses
Lower and upper bin boundaries for each band, as well the mid point between the boundaries.
Other ggplot2 helpers: