plot_grid {getspanel}R Documentation

Plotting an isatpanel object

Description

Plotting an isatpanel object

Usage

plot_grid(x, title = NULL, regex_exclude_indicators = NULL, ...)

Arguments

x

An object produced by the isatpanel function

title

Plot title. Must be a character vector.

regex_exclude_indicators

A regex character vector to exclude the inclusion of certain indicators in the plot. Default = NULL. Use with care, experimental.

...

Further arguments to be passed to ggplot2.

Value

A ggplot2 plot that plots an 'isatpanel' object and shows all indicators as a grid to give a good and quick overview.

Examples


data(EU_emissions_road)

# Group specification
EU15 <- c("Austria", "Germany", "Denmark", "Spain", "Finland", "Belgium",
         "France", "United Kingdom", "Ireland", "Italy", "Luxembourg",
         "Netherlands", "Greece", "Portugal", "Sweden")

# Prepare sample and data
EU_emissions_road_short <- EU_emissions_road[
EU_emissions_road$country %in% EU15 &
EU_emissions_road$year >= 2000,
]

# Run
result <- isatpanel(
  data = EU_emissions_road_short,
  formula = ltransport.emissions ~ lgdp + I(lgdp^2) + lpop,
  index = c("country", "year"),
  effect = "twoways",
  fesis = TRUE,
  plot = FALSE,
  t.pval = 0.01
)
plot(result)
plot_grid(result)


[Package getspanel version 0.2.0 Index]