Plotting Data in Phase Plane with Data Trajectories for Specified Entities

Share:

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

1
2
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.

Author(s)

Viktoria Spaiser: viktoria.sp@web.de

Examples

1
2
3
4
## 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)