Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201867

What is the easiest way to create a stacked bar chart using ggplot2? [duplicate]

$
0
0

My 4x5 tibble (below) is stored in a .csv file:

My data

I would like to create a stacked bar chart, where the x-axis represents the three foods and the y-axis represents the percentage points (cumulatively, each bar should add up to 100%), using ggplot2.

I'm extremely new to using R (and Stackoverflow) and unsure where to begin with creating this.


Viewing all articles
Browse latest Browse all 201867

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>