Description Usage Arguments Value Author(s) Examples

Plotting the problem hierarchy, showing the relationships between goal, criteria, and subcriteria.

1 2 3 4 |

`srcfile` |
a character matrix, where the first column specifies the hierarchy order. The second and third columns include the ID of decisison elements and ahp weights (optional), respectively (See the example below). |

`fontsize` |
the font size of characters. |

`cradx,crady` |
the horizontal and vertical radius of the criteria box, respectively. |

`sradx,srady` |
the horizontal and vertical radius of the subcriteria box, respectively. |

`cirx,ciry` |
the horizontal and vertical radius of the goal |

`gcol,ccol,scol` |
the filling color of the goal, criteria, and subcriteria boxes, respectively. |

`lcol` |
the line color surrounding the goal, criteria, and subcriteria boxes. |

`dist` |
the distance between the weights and the tree edges. |

`digit` |
the number of digits after decimal point to be shown on the arrows. |

`main` |
a character string as the plot title |

An object created by 'diagram'.

Daryanaz Dargahi

1 2 3 4 5 6 7 8 9 10 11 | ```
mat <- matrix(nrow = 7, ncol = 2, data = NA)
mat[,1] <- c('0', '1','2','3','4','4.1','4.2')
mat[,2] <- c('Prioritization_of_DE_genes','Tumor_expression','Normal_expression',
'Frequency', 'Epitopes', 'Number_of_epitopes', 'Size_of_epitopes')
# plotting a problem hierarchy
ahplot(mat, fontsize = 0.7, cradx = 0.11 ,sradx = 0.12, cirx= 0.18, ciry = 0.07)
# plotting a problem hierarchy with AHP weights shown on the edges of the graph
mat <- cbind(mat, c(1, 0.470, 0.341, 0.117, 0.073, 0.009, 0.064))
ahplot(mat, fontsize = 0.7, cradx = 0.11 ,sradx = 0.12, cirx= 0.18, ciry = 0.07)
``` |

Prize documentation built on May 2, 2018, 3:13 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.