stat_contour: Computer contours (iso-levels) of 3d data.

Description Usage Arguments Value Examples

Description

Computer contours (iso-levels) of 3d data.

Usage

1
2
  stat_contour(bins = NULL, binwidth = NULL, breaks = NULL,
    na.rm = FALSE)

Arguments

bins

number of contours (specify one of bins, binwidth, breaks)

binwidth

distance between each contour (specify one of bins, binwidth, breaks)

breaks

exact locations of contours (specify one of bins, binwidth, breaks)

Value

level

Examples

1
2
3
4
5
6
7
if (require("reshape2")) {
  volcano3d <- melt(volcano)
  names(volcano3d) <- c("x", "y", "z")
  volcano3d <- add_group(volcano3d)
  contours <- stat_transform(stat_contour(), volcano3d)
  geom_plot(geom_path(), contours)
}

hadley/layers documentation built on May 17, 2019, 10:42 a.m.