title: R: barplot in ggplot2 where the height of each bar is given
body: <pre><code>library(ggplot2)
  mydat &lt;- data.frame(type = c(&quot;A&quot;, &quot;B&quot;, &quot;C&quot;),
                      height = c(0.9, 0.3, 0.4))
  ggplot(mydat, aes(x = type, y = height, fill = type)) +
    geom_bar()
  </code></pre>
  <p>Running the above code gives me the following error:</p>
  <pre><code>Error: stat_count() must not be used with a y aesthetic.
  </code></pre>
  <p>I would like to create a barplot with 3 bars: one for A, one for B, and one for C. The barplot's y-axis ranges from 0 to 1, and the height of the boxplots are 0.9, 0.3, and 0.4, respectively. Is it possible to construct this barplot using <code>geom_bar</code> where the height of each bar is already given?</p>