I have been trying to implement ''the Visualisation of the 2014 Ebola outbreak in Sierra Leone'' using ggplot2 and gganimate as described in the Article available at https://aberdeenstudygroup.github.io/studyGroup/lessons/Visualising%20Spatial%20Data/Visualising_Spatial_Data_in_R/ using the shp files available at https://data.humdata.org/dataset/a4816317-a913-4619-b1e9-d89e21c056b4 and the dataset available at https://github.com/AberdeenStudyGroup/SG-T14_ggmap_gganimate/blob/master/SG-T14-data/ebola.csv (just for simplicity to follow).
My challenge is in the second plot (ebola_plot_sub) which is obtained by combining the ebola dataset and the shp information by using the below codes as described in the article. The plot I'm getting has a lot of lines crossing each other different from what is presented in the original writing, (ie. totally distorting country map margins).
(Note: the animation part for the entire dataset is a bit tricky because of the changes in the package but can forget about it for know).

ebola <- read.csv("ebola.csv")
ebola <- gather(ebola,key="date",value="cases",-admin2Name) ##convert to long format
ebola_data <- merge(SL.df,ebola,by="admin2Name")
## Subset the ebola data to plot just one week
ebola_data_sub <- ebola_data[ebola_data$date.y=="X.2014.W51.",]
#ebola_data_sub <- ebola_data[ebola_data$date.x=="X.2014.W51.",] #if the above code fails try this one
## create ggplot object ##
ebola_plot_sub <- ggplot(data = ebola_data_sub, aes(x = long, y = lat, group=group)) +
geom_polygon(aes(fill = cases),color="black") +
scale_fill_gradient(low = "#fcfbfd", high = "#2d004b") +
coord_map() + theme_minimal()
