plotRatio: Polya's Urn Plot Function

Description Usage Arguments Value Author(s) See Also Examples

Description

function that gets a 3D matrix as an input and returns a plot of max 3 treatments over patients and simulations

Usage

1
plotRatio(mtrx, plotNbr = 2, plotRed = 1, plotBlue = 2, plotBlack = 3)

Arguments

3D

matrix (treatment x patients x simulations)

Number

of treatments that should be plotted (default = 2)

Treatment

index that should be represented by: Red line, Blue line, Black line (default = 1,2,3)

Value

Plot with max three treatments (y axis = ration of the treatment) over patients (x axis) and simulations

Red line, Blue line, Black line represents each represent a treatment

Author(s)

mitja seibold mitja.seibold@student.uva.nl

See Also

polyasUrnFuncSimple

polyasUrnFuncAdvanced

Examples

1
2
3
4
5
6
7
8
9
foo <- array(1:125, dim = c(5,5,5))
plotRatio(foo)

foo <- array(1:125, dim = c(5,5,5))
prinNbr <- 3
pRed <- 5
pBlue <- 4
pBlack <- 1
plotRatio(foo,prinNbr,pRed, pBlue, pBlack)

81N55E/PNS_Polya documentation built on May 24, 2019, 8:48 p.m.