gvplot: convenience interface to R's 'plot' command

Description Usage Arguments Value Examples

Description

Executes a plot command in genvar's environment so that gvplot(xvar,yvar) will plot a scatter plot of the variables xvar and yvar in the genvar enviroment.

Usage

1

Arguments

...

arguments to be passed to R's plot command.

Value

returns NULL, invisibly

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
library(plm)
data(Produc)
use(Produc, clear=TRUE)
gen(laborforce, emp/(1-unemp/100))
empfrac = function (emp, laborforce) sum(emp)/sum(laborforce)
collapse("empfrac(emp,laborforce)", year)
rename(empfrac(emp, laborforce), empfrac)
destring(year)
gvplot(year, empfrac, type="b", main="Employment Percentage over Time",
xlab="Year", ylab="Employment Percentage", pch=19)

genvar documentation built on Jan. 21, 2020, 9:07 a.m.