r - Missing scale on ggplot 2 -
i creating graph using ggplot2. here first output of graph before tidying done.
and here code:
graph <- ggplot(data = village.times, aes(x=village.times$a6ncopo, y=(village.times$a5species=="funestus"))) + geom_bar(stat="identity", position = "stack", fill="#ff4444")
what don't know why there isn't scale on y axis , how remove true-false labels. there way can force ggplot include scale on y axis or have change way use data?
maybe subsetting data frame before using ggplot , creating histogram? otherwise don't expected result should be...
ggplot(subset(village.times, a5species=="funestus"), aes(x=a6ncopo)) + geom_bar()
Comments
Post a Comment