I want to plot the Emission of a Pollutant across different years so I used dplyr
package to summarize the data but I'm not able to plot it because of the format of the returned dataframe
.
I tried to convert the year and emission lists using as.numeric
but it refused so what should I do ?
total_emmision_per_year <- SCC %>% group_by(year) %>% summarise(total_emmision_per_year = sum(Emissions))
plot(total_emmision_per_year[,1], total_emmision_per_year[,2] , pch = 19)
I get this error:
Error in stripchart.default(x1, ...) : invalid plotting method