Learn R Programming

powerbrmsINLA (version 1.1.1)

.add_contour_lines: Add Contour Lines to a ggplot2 Plot

Description

Wrapper around geom_contour with preset defaults for color, alpha, width. Uses the correct linewidth/size argument depending on ggplot2 version.

Usage

.add_contour_lines(
  mapping = NULL,
  data = NULL,
  breaks = NULL,
  colour = "white",
  alpha = 0.3,
  width = 0.2,
  bins = NULL
)

.add_contour_lines( mapping = NULL, data = NULL, breaks = NULL, colour = "white", alpha = 0.3, width = 0.2, bins = NULL )

Value

A ggplot2 layer adding contour lines.

A ggplot2 layer adding contour lines.

Arguments

mapping

Mapping aesthetic.

data

Data frame.

breaks

Break points for contours.

colour

Colour of contour lines.

alpha

Transparency level.

width

Line width.

bins

Number of bins for contour fill.