InterVA5.plot {InterVA5} | R Documentation |
Plot an individual-level distribution of va probabilities.
Description
The function takes an input of a single va object and produces a summary plot for it.
Usage
InterVA5.plot(
va,
type = "bar",
title = "Top CSMF Distribution",
min.prob = 0.01,
...
)
Arguments
va |
A va object |
type |
An indicator of the type of chart to plot. "pie" for pie chart; "bar" for bar chart. |
title |
A character string for the title of the CSMF plot. |
min.prob |
The minimum probability that is to be plotted in bar chart, or to be labeled in pie chart. |
... |
Arguments to be passed to/from graphic function
|
See Also
Examples
## Not run:
data(RandomVA5)
# only fit first 20 observations for a quick illustration
RandomVA5 <- RandomVA5[1:20, ]
#' sample.output <- InterVA5(RandomVA5, HIV = "h", Malaria = "v", write = FALSE,
directory = tempdir(), filename = "VA5_result", output = "extended", append = FALSE)
## Individual level summary using pie chart
InterVA5.plot(sample.output$VA5[[3]], type = "pie", min.prob = 0.01,
main = "1st sample VA analysis using pie chart", clockwise = FALSE,
radius = 0.6, cex = 0.6, cex.main = 0.8)
## Individual level summary using bar chart
InterVA5.plot(sample.output$VA5[[3]], type = "bar", min.prob = 0.01,
main = "2nd sample VA analysis using bar chart", cex.main = 0.8)
## End(Not run)
[Package InterVA5 version 1.1.3 Index]