Description Usage Arguments See Also Examples
Function drawning table of losses for a given loss matrix, risk categories and business lines.
1 2 3 4 |
D |
matrix of losses, it should be of |
businesslines |
vector of business lines names |
riskcategories |
vector of risk categories names |
data |
object of |
col1 |
colour of rectangles with no data |
col2 |
colour for rectangles with mean loss more than or equal to mean loss for |
col3 |
colour for rectangles with mean loss more than or equal to mean loss for |
col4 |
colour for rectangles with mean loss more than 0 and less than mean loss for |
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 |
loss.matrix
, loss.data.object
, read.loss
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)])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.