0

I have the following:

year<-c(1995,1996,1997)
consume1<-c(3259.7,  4285.4,  5511.7)
consume2<-c(53899.9, 58665.7,  63278.0)
consume3<-c(7857.8,  7958.2,  8221.4)

informacao<-list(year,consume1,consume2,consume3)

How do I make a side by side bar graph in ggplot, where the x axis are the years, so that in 1995, for example, I have 3 bars with height 3259.7,53899.9,7857.8 and so on.

  • 1
    hi Jose. I think a beginner's ggplot tutorial might be useful. check for example http://www.cookbook-r.com/Graphs/Bar_and_line_graphs_(ggplot2)/ or http://www.sthda.com/english/wiki/ggplot2-barplots-quick-start-guide-r-software-and-data-visualization – tjebo Dec 19 '21 at 23:08

0 Answers0