overplot_horizontal_lines: overplot_vertical_lines

Description Usage Arguments Value Examples

Description

Enriches a graph with good looking vertical lines. For instance, this may be used to represend point estimates and limits in a PDF.

Usage

1
2
overplot_horizontal_lines(y_values, y_labels = NULL, color = NULL,
  alpha = NULL, plot_addition = NULL, verbosity = NULL, ...)

Arguments

graph

a ggplot graph, typically a PDF or CDF

estim_quantiles

a vector of estimated quantiles (aka x values)

estim_labels

meaningful labels to describe the estimated quantiles

Value

an good looking graph enriched with visual representations for the estimates

Examples

1
2
3
4
fun <- function(x, ...) { return(dlnorm(x = x, meanlog = 100, sdlog = 20, log = FALSE))  }
graph <- plot_probability_density_function(fun = fun, x_start = 10, x_end = 150)
graph_enriched <- overplot_horizontal_lines(graph=graph, x_values = c(.05,.95), x_labels = c("a","b"))
graph_enriched

daviddoret/GRCRToolkit documentation built on May 23, 2019, 7:31 a.m.