overplot_vertical_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
3
overplot_vertical_lines(x_values, x_labels = NULL, color = NULL,
  alpha = NULL, line_type = NULL, plot_addition = NULL,
  verbosity = NULL, ...)

Arguments

x_values

a vector of estimated quantiles (aka x values)

x_labels

meaningful labels to describe the estimated quantiles

color

A GGPlot color value.

alpha

A GGPlot alpha value.

line_type

GGPlot2 line type. Legal values are the strings "blank", "solid", "dashed", "dotted", "dotdash", "longdash", and "twodash". Alternatively, the numbers 0 to 6 can be used (0 for "blank", 1 for "solid", ...). Moreover, one can also use strings that define the linetype with up to 8 hexadecimal digits (each digit specifying the length of interleaved lines and gaps). Reference: http://sape.inf.usi.ch/quick-reference/ggplot2/linetype.

plot_addition

Complementary plot objets to be added to the new plot object for enrichment purposes.

verbosity

0: no messages. > 0 more and more verbose messages.

Value

A good looking geom object that may be used to enrich plots.

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_vertical_lines(graph=graph, x_values = c(50,90), x_labels = c("a","b"))
graph_enriched

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