beta_conv_graph: Graphical representation based on beta convergence

View source: R/beta_conv_graph.R

beta_conv_graphR Documentation

Graphical representation based on beta convergence

Description

A ggplot of transformed data and a straight line for the results obtained for beta-convergence

Usage

beta_conv_graph(betaRes, indiName = NA, time_0 = NA, time_t = NA)

Arguments

betaRes

the output obtained from beta_conv function.

indiName

name of the considered indicator as a string.

time_0

starting time.

time_t

ending time.

Value

a ggplot object to be displayed of saved using ggsave.

References

https://unimi2013-my.sharepoint.com/:u:/g/personal/federico_stefanini_unimi_it/EW0cVSIgbtZAvLPNbqcxdX8Bfn5VGSRHfAH88hQwc_RIEQ?e=MgtSZu

Examples



# Example 1
# Beta convergence for the emp_20_64_MS Eurofound dataset in the period 2002-2006:
data(emp_20_64_MS)
empBC <- beta_conv(emp_20_64_MS, time_0 = 2002, time_t = 2006, timeName = "time")

# Graphical plot based on the results for beta-convergence
empBCgraph <- beta_conv_graph(empBC,2002,2006,indiName = 'Employment rate')
empBCgraph

# Example 2
# Beta convergence for the emp_20_64_MS Eurofound dataset in the period 2008-2016:
empBC1 <- beta_conv(emp_20_64_MS, time_0 = 2008, time_t = 2016, timeName = "time")

# Graphical plot based on the results for beta-convergence
empBCgraph1 <- beta_conv_graph(empBC1,2008,2016,indiName = 'Employment rate')
empBCgraph1



convergEU documentation built on March 7, 2023, 7:22 p.m.