| geom_dr_ribbon | R Documentation | 
Add line layer of predicted detection range estimates and ribbon layer of the confidence interval.
geom_dr_ribbon(
  mapping = NULL,
  data = NULL,
  stat = "identity",
  position = "identity",
  na.rm = FALSE,
  show.legend = NA,
  inherit.aes = TRUE,
  ...
)
mapping | 
 Set of aesthetic mappings created by   | 
data | 
 The data to be displayed in this layer. There are three options: If  A  A   | 
stat | 
 The statistical transformation to use on the data for this layer, as a string.  | 
position | 
 Position adjustment, either as a string, or the result of a call to a position adjustment function.  | 
na.rm | 
 If   | 
show.legend | 
 logical. Should this layer be included in the legends?
  | 
inherit.aes | 
 If   | 
... | 
 Other arguments passed on to   | 
dr_plot() dr_plot_predict()
Other ggplot: 
geom_dr_errorbar(),
geom_dr_point()
ggplot2::ggplot(data = detrange::range_pred) +
  geom_dr_ribbon(ggplot2::aes(x = Distance, estimate = estimate,
                                lower = lower, upper = upper))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.