Learn R Programming

sdcMicro (version 5.5.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

Examples

Run this code
# NOT RUN {
data(testdata)
# }
# NOT RUN {
# 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