This is the original dataset: https://correlatesofwar.org/wp-content/uploads/state_year_formatv3.zip
I am having issues with fitting elements within a Venn diagram in the correct circle. The Venn diagram shows the country members of the two international organizations
The country character codes do not fit in either format - next to each other for label_sep = "," or underneath label_sep = "\n". I am unsure of how to make the elements fit in the circle otherwise.
If someone could point me in the rigth direction this would be very helpful. Greetings!
install.packages("haven")
install.packages("tidyverse")
install.packages("ggvenn")
install.packages("countrycode")
library("haven")
library("tidyverse")
library("ggvenn")
library("countrycode")
data <- read_dta("state_year_format3.dta")
data$cntry <- countrycode(data$ccode, origin = 'cown', destination = 'iso3c')
dta <- data %>% filter(year == 1975) %>%
select(year, cmea, gatt,cntry)
# create a country list for GATT and CMEA
GATT <- dta %>% filter(gatt == 1 )
CMEA <- dta %>% filter(cmea == 1)
x <- list(GATT = GATT$cntry, CMEA = CMEA$cntry)
# venn diagram
ggvenn(x, show_elements = T, label_sep = "\n")
I have tried ordering the elements next to each other (label_sep = "," ) and underneath (label_sep = "\n"). If I had three columns within the bluish part, then this might work - no clue how to go about this.