geom_hilo_ribbon( mapping = NULL, data = NULL, stat = "identity", position = "identity", na.rm = 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.
logical. Should this layer be included in the legends?
Other arguments passed on to
geom_hilo_ribbon() displays the interval defined by a hilo object. The
luminance of the shaded area indicates its confidence level. The shade colour
can be controlled by the
fill aesthetic, however the luminance will be
overwritten to represent the confidence level.
geom_hilo_linerange() for discrete hilo intervals (vertical lines)
dist <- dist_normal(1:3, 1:3) library(ggplot2) ggplot( data.frame(x = rep(1:3, 2), interval = c(hilo(dist, 80), hilo(dist, 95))) ) + geom_hilo_ribbon(aes(x = x, hilo = interval))