loss.matrix.image: Draws loss matrix image

Description Usage Arguments See Also Examples

Description

Function drawning table of losses for a given loss matrix, risk categories and business lines.

Usage

1
2
3
4
loss.matrix.image(D, businesslines, riskcategories, data = NULL,
	col1 = c("lavender"), col2 = c("rosybrown 1"),
	col3 = c("lightpink"), col4 = c("mistyrose"), col5 = c("mintcream"),
	cex1 = 0.6, cex2 = 0.6, cex3 = 0.6)

Arguments

D

matrix of losses, it should be of loss.matrix value type

businesslines

vector of business lines names

riskcategories

vector of risk categories names

data

object of loss.data.object type; it can be used instead of three previous arguments

col1

colour of rectangles with no data

col2

colour for rectangles with mean loss more than or equal to mean loss for D and less than mean loss for D + standard deviation of mean loss for D

col3

colour for rectangles with mean loss more than or equal to mean loss for D + standard deviation of mean loss for D

col4

colour for rectangles with mean loss more than 0 and less than mean loss for D

col5

legend colour

cex1

the final character size of names of risk categories and business lines

cex2

the final character size of number of losses, mean loss and maximum loss

cex3

the final character size of legend letters

See Also

loss.matrix, loss.data.object, read.loss

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
data(loss.data.object)
D <- loss.matrix(loss.data.object)

# first example:

loss.matrix.image(D,loss.data.object$blines,loss.data.object$rcateg)

# second example:

loss.matrix.image(D,loss.data.object$blines,loss.data.object$rcateg,col1="ghostwhite") # one colour is changed

# third example:

 # not every business and risk line is chosen
loss.matrix.image(D[c(2,8),,c(1,3,5)],loss.data.object$blines[c(2,8)],loss.data.object$rcateg[c(1,3,5)])

barryrowlingson/opVaR documentation built on May 11, 2019, 7:24 p.m.