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

Range Bar Graph in R

$
0
0

hs

The plot is just for visualization. The bars rather than starting at a common zero point, begin at min value for that particular bar and end at max value for particular bar. When I use ggplot geom_bar()- it sets the min values at the origin - how can I change it to a range bar plot? Thanks.

So, I would like to have min value as the bottom of the bar and max as the top and the bar will show the difference btw max and min.

Here is my data: Min <- c(0.1, 0.0001, 0.01, 0.12)

Max <- c(100, 4000, 1000, 10, 5) Difference <- c(99.9, 3999.9, 999, 9.99, 4.88)


Viewing all articles
Browse latest Browse all 201839

Trending Articles



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