plot.sdcMicroObj: Plotfunctions for objects of class sdcMicroObj

View source: R/plotFunctions.R

plot.sdcMicroObjR Documentation

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 class 'sdcMicroObj'
plot(x, type = "ls", ...)

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

Value

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

Author(s)

Bernhard Meindl

Examples


data(testdata)
sdc <- createSdcObj(testdata,
  keyVars = c("urbrur", "roof", "walls", "relat", "sex"),
  w = "sampling_weight")
sdc <- kAnon(sdc, k = 3)
plot(sdc, type = "ls")


sdcMicro documentation built on Sept. 27, 2023, 5:07 p.m.