Learn R Programming

sdcMicro (version 5.6.1)

plot.sdcMicroObj: Plotfunctions for objects of class sdcMicroObj-class

Description

Descriptive plot function for sdcMicroObj-class-objects. Currently only visualization of local supression is implemented.

Usage

# S3 method for sdcMicroObj
plot(x, type = "ls", ...)

Arguments

x

An object of class sdcMicroObj-class

type

specified what kind of plot will be generated

  • 'ls': plot of local suppressions in key variables

...

currently ignored

Author

Bernhard Meindl

Examples

Run this code

data(testdata)
if (FALSE) {
# dontrun because Examples with CPU time > 2.5 times elapsed time
sdc <- createSdcObj(testdata,
  keyVars=c('urbrur','roof','walls','relat','sex'),
  pramVars=c('water','electcon'),
  numVars=c('expend','income','savings'), w='sampling_weight')
sdc <- kAnon(sdc, k=5)
plot(sdc, type="ls")
}

Run the code above in your browser using DataLab