euparliament: EU Parliament elections of 2014 and 2019 Rpackage.

Description Usage Arguments Author(s) Examples

Description

The package contains a set of seven functions, one dataset and one vignette with an analysis of the European Unions Parliament election results of 2014 and 2019. The analysis in the vignette presents how many seats of the EU Parliament have been awarded to each political party in each country and election, and then regroups parties with similar characteristics into larger political groups, making it easier to visualize and understand the changes in the balance of power between the two elections.

The dataset itself contains the number of seats awarded to each party in each country after each election and the functions listed in this Rpackage are all used in the vignette to transform the data as needed or to plot maps of the EU displaying the elections results and its changes.

Usage

1
2
3
4
In order to visualize the vignette with the analysis of the election results for the EU Parliament,
execute the following command:

browseVignettes("euparliament")

Arguments

elections_eu:

Dataframe containing the European Union's Parliament election results for 2014 and 2019 by number of parliament seats awarded to each party in each country.

newpoligroup:

Function that sums several columns into a single one and then renames it.

newgroupby:

Function that creates a data frame with political groups created by using function newpoligroup.

(percseats):

Function that calculates the percentage of possible seats per country a party has received.

percchange:

Function that when given the total number of seats, it calculates the percentage of possible seats per country a party has received.

get_map:

Function that creates a map that shows which is the most voted political group within each contry.

get_density_map:

Function that creates a map with a gradient scale.

get_density_map2:

Function that creates a map with two gradients in the same scale.

Author(s)

Bruno Carvalho Lopes Rogerio

Examples

1

bclroger/euparliament documentation built on Jan. 26, 2020, 12:56 a.m.