plot_data: Plotting Data in Phase Plane with Data Trajectories for...

Description Usage Arguments Author(s) Examples

View source: R/plot_data.R

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)

Example output

png 
  2 
Warning messages:
1: In min(x) : no non-missing arguments to min; returning Inf
2: In max(x) : no non-missing arguments to max; returning -Inf
3: In min(x) : no non-missing arguments to min; returning Inf
4: In max(x) : no non-missing arguments to max; returning -Inf
5: In min(x) : no non-missing arguments to min; returning Inf
6: In max(x) : no non-missing arguments to max; returning -Inf
7: In min(x) : no non-missing arguments to min; returning Inf
8: In max(x) : no non-missing arguments to max; returning -Inf

bdynsys documentation built on May 2, 2019, 9:42 a.m.

Related to plot_data in bdynsys...