InterVA.plot {InterVA4}R Documentation

Plot a individual level distribution of va probabilities.

Description

The function takes input of a single va object and produces a summary plot for it.

Usage

InterVA.plot(va, type = "bar", 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.

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 barplot, pie, and more graphical paramters (see par). They will affect the main title, size and font of labels, and the radius of the pie chart.

See Also

CSMF

Examples


data(SampleInput)
sample.output <- InterVA(SampleInput, HIV = "h", Malaria = "v", write=FALSE)

## Individual level summary using pie chart
InterVA.plot(sample.output$VA[[7]], 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
InterVA.plot(sample.output$VA[[7]], type = "bar", min.prob = 0.01, 
    main = "2nd sample VA analysis using bar chart", cex.main = 0.8)


[Package InterVA4 version 1.7.6 Index]