Learn R Programming

sdcMicro (version 5.7.8)

plot.sdcMicroObj: Plotfunctions for objects of class sdcMicroObj

Description

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

Usage

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

Value

a ggplot plot object or (invisible) NULL if local suppression using kAnon() has not been applied

Arguments

x

An object of class sdcMicroObj

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
# \donttest{
data(testdata)
sdc <- createSdcObj(testdata,
  keyVars = c("urbrur", "roof", "walls", "relat", "sex"),
  w = "sampling_weight")
sdc <- kAnon(sdc, k = 3)
plot(sdc, type = "ls")
# }

Run the code above in your browser using DataLab