plot method for localSuppression objects

Share:

Description

Barplot for objects from class localSuppression.

Usage

1
2
## S3 method for class 'localSuppression'
plot(x, ...)

Arguments

x

object of class ‘localSuppression’

...

Additional arguments, currently available are:

  • showDetails logical, if set, a plot of suppressions by strata is shown (if possible)

Details

Just look at the resulting plot.

Author(s)

Bernhard Meindl, Matthias Templ

See Also

localSuppression

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## example from Capobianchi, Polettini and Lucarelli:
## Not run: 
data(francdat)
l1 <- localSuppression(francdat, keyVars=c(2,4,5,6))
l1
plot(l1)

## with details of suppression by strata
data(testdata2)
testdata2$ageG <- cut(testdata2$age, 5, labels=paste0("AG",1:5))
keyVars <- c("urbrur","roof","walls","water","electcon","relat","sex")
strataVars <- c("ageG")
inp <- testdata2[,c(keyVars, strataVars)]
ls <- localSuppression(inp, keyVars=1:7, strataVars=8)
print(ls)
plot(ls)
plot(ls, showDetails=TRUE)

## End(Not run)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.