Description Usage Arguments See Also Examples
geom_contour() + labels
1 2 3 4 5 6 7 8 9 | StatContourLabel
geom_contour_label(mapping = NULL, data = NULL, position = "identity",
na.rm = FALSE, show.legend = NA, inherit.aes = TRUE, digits = 3, ...)
geom_labeled_contour(mapping = NULL, data = NULL, stat = "contour",
position = "identity", lineend = "butt", linejoin = "round",
linemitre = 1, na.rm = FALSE, show.legend = NA, inherit.aes = TRUE,
digits = 3, ...)
|
digits |
this parameter is passed to |
The arguments are the same as geom_contour, except for digits
1 2 3 4 5 6 7 8 9 10 11 12 13 | library(ggplot2)
N <- 60
x <- seq(0, 100, length=N)
d.cont <- data.frame(x=rep(x,N), y=rep(x,each=N))
d.cont <- transform(d.cont, z.diff = x-y)
ggplot(d.cont, aes(x, y, z = z.diff)) +
geom_contour() +
geom_contour_label()
# shortcut
ggplot(d.cont, aes(x, y, z = z.diff)) +
geom_labeled_contour()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.