I am trying to plot a CSV file in GGPLOT in R, but I'm still very new to R…
The goal is to plot a bar chart with countries on one axis (Column A(Country) and a comparison of 4 values (Columns b-e (col.b, col.c, col.d, col.e)
right now I have:
library(ggplot2)
dataset <- read.csv("[path]/dataset.csv")
ggplot(data=dataset, aes (x=Country, y=col.b, col.c, col.d, col.e, fill=)) +
geom_col(stat="identity") +
scale_fill_manual("legend", values = c("black", "orange", "blue", "green" ))
I seem to have trouble to get it to actually colour the bars for me and also it also shows col.b as far as I can tell. How should it look instead?