xtplot: xtplot

Description Usage Arguments Examples

Description

Plot function for data frames with an xtdata attribute.

Usage

1
  xtplot(data, variable, name = "")

Arguments

data

a data frame with an xtdata attribute.

variable

the variable to plot.

name

the name to give the color scale.

Examples

1
2
3
4
5
6
# Population in countries with a population over 100,000 people.
xtplot(xtsubset(qog.ts.demo, unna_pop > 10^8), "unna_pop") + geom_area()
# Health care expenditure per capita in a random country sample.
xtplot(xtsample(qog.ts.demo, 12), "wdi_hec", "line") +
  geom_smooth() + geom_point() +
  xlim(1995, 2010)

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