getlineplot: Generate a ggplot2 line plot.

Description Usage Arguments Value

View source: R/montyhall.R

Description

Generates ggplot2 line plot object from the list of win fraction results.

Usage

1
2
3
4
5
6
7
8
9
getlineplot(
  ld,
  ptitle = "Plot title",
  ribbontype = c("sd", "minmax"),
  xlim = NULL,
  ylim = NULL,
  xlab = "ndoors",
  ylab = "fract.win"
)

Arguments

ld

List of win fractions.

ptitle

Plot main title from 'ggtitle()'.

ribbontype

Metric to calculate ribbon overlay (either "sd" or "minmax").

xlim

Vector of 2 x-axis coordinates (min and max), or NULL.

ylim

Vector of 2 y-axis coordinates (min and max) or NULL.

xlab

Label for x-axis.

ylab

Label for y-axis.

Value

Line plot object.


metamaden/montyhall documentation built on April 4, 2020, 9:39 p.m.