Mastering Development

trying to compare two countries over time on ggplot

I am stuck in what I’m sure is an extremely simple fix but I just can’t get my head out of the woods enough to actually see the answer. I’m trying to create a ggplot in R of the annual number of hate crimes in two countries between 2012-2018. Now, I’m not great with R […]


Looping over multiple data frames to ggplot

I am very new to the language. I have read in multiple csv files as dataframes, setwd(“/Users/user/go/src/Project/outputcsv2D”) file_list <- list.files(path=”/Users/user/go/src/Project/outputcsv2D”) filenames <- gsub(“\\.csv$”,””, list.files(pattern=”\\.csv$”)) for(i in filenames){ assign(i, read.csv(paste(i, “.csv”, sep=””))) } but when I try to loop over the filenames[i] to plot, #making a list of plots plot_list = list() for (i in filenames) […]