Learn R Programming

bdynsys (version 1.3)

plot_data: Plotting Data in Phase Plane with Data Trajectories for Specified Entities

Description

plot_data plots data form indicator 1 and indicator 2 in phase plane. The user may specify entities for which he/she wants to plot the data trajectories over the plotted data. It calls the function preprocess_data. It requires the packages plm and graphics.

Usage

plot_data(dataset, xvar, yvar, rangeX, rangeY, entidx1, entidx2, entidx3, entidx4, entidx5, entidx6)

Arguments

dataset
a plm pdata.frame panel data frame.
xvar
a reference to variable from the paneldata to be included as indicator 1 in the modeling procedure.
yvar
a reference to variable from the paneldata to be included as indicator 2 in the modeling procedure.
rangeX
defines the range of the indicator 1.
rangeY
defines the range of the indicator 2.
entidx1
index of an entity in the wide format data of a variable.
entidx2
index of an entity in the wide format data of a variable.
entidx3
index of an entity in the wide format data of a variable.
entidx4
index of an entity in the wide format data of a variable.
entidx5
index of an entity in the wide format data of a variable.
entidx6
index of an entity in the wide format data of a variable.

Examples

Run this code
## Plot Data in a Phase Plane with Data Trajectories for Specified Entities

plot_data(datap, datap$logGDP, datap$EmanzV, seq(0, 12, by = 0.5), seq(0, 1, by = 0.1), 
1, 2, 3, 4, 5, 6)

Run the code above in your browser using DataLab