r - Missing scale on ggplot 2 -


i creating graph using ggplot2. here first output of graph before tidying done.

graph

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

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -