InterVA.plot: Plot a individual level distribution of va probabilities.

Description Usage Arguments See Also Examples

View source: R/InterVA.plot.R

Description

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

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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)

InterVA4 documentation built on Nov. 13, 2019, 9:06 a.m.