getlinedat: Get results data formatted for ggplot2 line plots.

Description Usage Arguments Value

View source: R/montyhall.R

Description

Takes a list of win fractions and results the data in ggplot2 line plot function-ready format.

Usage

1
getlinedat(ld, ribbontype = c("sd", "minmax"), xtitle = "ndoors")

Arguments

ld

List of win fractions.

ribbontype

How to calculate gray ribbon ovelay. Either "sd" for standard deviation, or "minmax" for min and max of run.

xtitle

Name of variable to be in x-axis of line plot.

Value

Formatted dataset.


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