Learn R Programming

Tariff (version 1.0.5)

plot.tariff: Plot CSMF of the results obtained from Tariff algorithm

Description

This function plots the CSMF of the fitted results.

Usage

# S3 method for tariff
plot(x, top = NULL, min.prob = 0, ...)

Arguments

x

fitted object from tariff

top

maximum causes to plot

min.prob

minimum fraction for the causes plotted

...

Arguments to be passed to/from graphic function

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
data("RandomVA3")
test <- RandomVA3[1:200, ]
train <- RandomVA3[201:400, ]
allcauses <- unique(train$cause)
fit <- tariff(causes.train = "cause", symps.train = train, 
				symps.test = test, causes.table = allcauses)
plot(fit, top = 10, main = "Top 5 population COD distribution")
plot(fit, min.prob = 0.05, main = "Ppulation COD distribution (at least 5%)")
# }

Run the code above in your browser using DataLab