plotCenterLabels: Plot the standardized risk with confidence limits per center

Description Usage Arguments Value Examples

Description

Plot the standardized risk with confidence limits per center

Usage

1
2
3
plotCenterLabels(standardizedRisks, labeledCenters, yValue = c("size",
  "name"), labelColors = c(L = "olivedrab1", A = "black", H = "red"),
  labelPch = c(L = 17, A = 20, H = 17), ...)

Arguments

standardizedRisks

standardized risks as produced by the standardize function

labeledCenters

labeled centers as produced by the labelCenters function

yValue

value to report on the y axis; one of 'size' (default; center size) or 'name' (center name)

labelColors

vector of colors (length 3) for the L, A and H label respectively; default value is c(L = "green", A = "black", H = "red")

labelPch

vector of plot characters to be used for the L, A and H label resp.; default value is c(L = 17, A = 20, H = 17)

...

further arguments passed to plot

Value

no return value; plot is written to the current device

Examples

1
2
3
4
5
set.seed(130513)
simulatedData <- simulateData()
standardizedRisks <- with(simulatedData, standardizeRisks(patientCovariates = L, center = center, Y = Y))
labeledCenters <- labelCenters(standardizedRisks = standardizedRisks)
plotCenterLabels(standardizedRisks = standardizedRisks, labeledCenters = labeledCenters)

StatGent/RiskStandard documentation built on May 9, 2019, 1:57 p.m.