I'd like to start a bar chart at somewhere other than the y = 0. In my case, I want to start the bar chart at y = 1.
As an example, let's say that I build a identity geom_bar()
chart with ggplot2.
df <- data.frame(values = c(1, 2, 0),
labels = c("A", "B", "C"))
library(ggplot2)
ggplot(df, aes(x = labels, y = values, fill = labels, colour = labels)) +
geom_bar(stat="identity")
Now, I'm not asking how to set scale or axis limits. I want bars representing values less than 1 to flow down from y = 1.
It needs to look like this...but with a different y axis:
Any advice?
See Question&Answers more detail:os