plotVA: Plot top CSMF for a fitted model

View source: R/VAmain.r

plotVAR Documentation

Plot top CSMF for a fitted model

Description

Plot top CSMF for a fitted model

Usage

plotVA(object, top = 10, title = NULL, ...)

Arguments

object

a fitted object using codeVA

top

number of top causes to plot

title

title of the plot

...

additional arguments passed to plot.insilico, plot.tariff, CSMF, or plot.nbc function in the nbc4va package.

See Also

plot.insilico in package InSilicoVA, CSMF in package InterVA4, CSMF5 in package InterVA5, plot.tariff in package Tariff.

Other visualization: stackplotVA()

Examples


data(RandomVA3)
test <- RandomVA3[1:200, ]
train <- RandomVA3[201:400, ]
fit1 <- codeVA(data = test, data.type = "customize", model = "InSilicoVA",
                    data.train = train, causes.train = "cause",
                    Nsim=1000, auto.length = FALSE)

fit2 <- codeVA(data = test, data.type = "customize", model = "InterVA",
               data.train = train, causes.train = "cause",
               version = "4.02", HIV = "h", Malaria = "l")

fit3 <- codeVA(data = test, data.type = "customize", model = "Tariff",
               data.train = train, causes.train = "cause", 
               nboot.sig = 100)

plotVA(fit1)
plotVA(fit2)
plotVA(fit3)


openVA documentation built on May 29, 2024, 6:04 a.m.