title: Why does stacked barplot ggplot in R sum values?
body: <p>When I make the following, I want just to compare the three years not to sum them. And the actual code sums them even if I don't tell it to do it. Any clue?</p>
  <pre><code>hoteles &lt;- tibble::tribble(
    ~Hotel          , ~Año, ~Ingresos
    , &quot;Hawaiian Club&quot; , &quot;1993&quot;,    450000
    , &quot;Hawaiian Club&quot; , &quot;1994&quot;,    475000
    , &quot;Hawaiian Club&quot; , &quot;1995&quot;,    390000
    , &quot;French Riviera&quot;, &quot;1993&quot;,    225000
    , &quot;French Riviera&quot;, &quot;1994&quot;,    240000
    , &quot;French Riviera&quot;, &quot;1995&quot;,    205000
    , &quot;Bahamas Beach&quot; , &quot;1993&quot;,    245000
    , &quot;Bahamas Beach&quot; , &quot;1994&quot;,    255000
    , &quot;Bahamas Beach&quot; , &quot;1995&quot;,    345000
  )
  
  g &lt;- ggplot(hoteles, aes(fill=Año, y=Ingresos, x=reorder(Hotel, Ingresos))) + 
    geom_bar(position=&quot;stack&quot;, stat=&quot;identity&quot;) + 
    ggtitle(&quot;Ingresos por año por hotel&quot;) +
    labs(y = &quot;Ingresos&quot;, x = &quot;Hotel&quot;)
  g
  </code></pre>
  <p><a href="https://i.stack.imgur.com/i3z1u.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/i3z1u.png" alt="Graph" /></a></p>