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

Description Usage Arguments Examples

View source: R/Tariff.plot.r

Description

This function plots the CSMF of the fitted results.

Usage

1
2
## S3 method for class '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

1
2
3
4
5
6
7
8
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%)")

Tariff documentation built on May 2, 2019, 3:35 p.m.

Related to plot.tariff in Tariff...