I have a data frame similar to this one:
year LE Rn
2005 400 500
2006 402 501
2007 403 502
2008 404 503
2009 405 504
2010 406 503
and now I would like to have a box plot with year on x-axis and water equivalents (mm) on y-axis and then LE an Rn per year next to each other.
I've tried:
ggplot(df, aes(x=as.factor(df$year),y=df$LE, fill=df$Rn)) +
geom_bar(stat="identity",fill="steelblue", position = position_dodge())
but it only plots only the LE and not the Rn.
Thank you!