xtmissing: Plot availability of panel variables

Description Usage Arguments Value Author(s) Examples

Description

Function to plot data availability in xtdata datasets. Requires the ggplot2 package.

Usage

1
  xtmissing(data = NULL, variable)

Arguments

data

a dataset with the xtdata attribute.

variable

the variable to plot.

Value

a ggplot2 object

Author(s)

Francois Briatte f.briatte@ed.ac.uk

Examples

1
2
3
4
5
6
7
8
if(require(ggplot2)) {
  # Load QOG demo datasets.
  data(qog.demo)
  xtmissing(qog.ts.demo, "chga_hinst") +
    ggtitle("Country-year availability of regime type")
  xtmissing(qog.ts.demo, "bl_asy15f") +
    ggtitle("Country-year availability of female education")
}

briatte/qogdata documentation built on May 13, 2019, 7:43 a.m.