plot_c2c {cat2cat}R Documentation

Summary plots for cat2cat results.

Description

This function help to understand properties of cat2cat resuls and possibly before further preprocessing.

Usage

plot_c2c(data, weis = "wei_freq_c2c", type = "both")

Arguments

data

data.frame

weis

character - name of a certain wei_*_c2c column added by cat2cat function. Default wei_freq_c2c

type

character - one of 3 types both, hist, bar

Value

base plot graphics

Note

It will work only for data.frame produced by cat2cat function.

Examples

data(occup_small)
occup_old <- occup_small[occup_small$year == 2008, ]
occup_new <- occup_small[occup_small$year == 2010, ]

occup_2 <- cat2cat(
data = list(old = occup_old, new = occup_new, cat_var = "code", time_var = "year"),
mappings = list(trans = trans, direction = "backward")
)

plot_c2c(occup_2$old, type = c("both"))
plot_c2c(occup_2$old, type = c("hist"))
plot_c2c(occup_2$old, type = c("bar"))


[Package cat2cat version 0.2.1 Index]