title: bar chart of row freq ggplot2
body: <p>I have the following data:</p>
  
  <pre><code>dataf &lt;- read.table(text = "index,group,taxa1,taxa2,taxa3,total
                  s1,g1,2,5,3,10
                  s2,g1,3,4,3,10
                  s3,g2,1,2,7,10
                  s4,g2,0,4,6,10", header = T, sep = ",")
  </code></pre>
  
  <p>I'm trying to make a stacked bar plot of the frequences of the data so that it counts across the row (not down a column) for each index (s1,s2,s3,s4) and then for each group (g1,g2) of each taxa. I'm only able to figure out how to graph the species of one taxa but not all three stacked on each other.</p>
  
  <p>Here are some examples of what I'm trying to make:</p>
  
  <p><a href="https://i.stack.imgur.com/D3uUE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/D3uUE.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/RCb6F.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RCb6F.png" alt="enter image description here"></a></p>
  
  <p>These were made on google sheets so they don't look like ggplot but it would be easier to make in r with ggplot2 because the real data set is larger. </p>