library(ggplot2)
year <- c(20144, 20144, 20151, 20151, 20152, 20152,
20153, 20153, 20154, 20154, 20161, 20161,
20162, 20162, 20163, 20163, 20164, 20164,
20171, 20171, 20172, 20172, 20173, 20173)
per <- c(73.9, 51.4, 73.1, 50.5, 74.4, 52.4, 74.2, 52.4, 73.5, 51.9,
73, 50.9, 74.2, 52.6, 74.5, 52.7, 73.8, 52.2, 73.1, 51.5,
74.5, 53.2, 74.2, 53.1)
gen <- c("man","woman","man","woman","man","woman","man","woman",
"man","woman","man","woman","man","woman","man","woman",
"man","woman","man","woman","man","woman","man","woman")
eco <- data.frame(year, per, gen)
eco
ggplot(eco, aes(x=per,fill = gen, color = year))+
geom_histogram(binwidth = 0.1, position = "dodge")
I want to customize the y-axis in this coding. I want to know if that is possible. If that doesn't work, I would like to express three things here: year, per, and gen. This is so difficult that I write a question. I would really appreciate your reply.