Current code outputs a stacked bar graph of species at different sites. Im looking to log10 the y axis to provide a more concise view. And adjust y axis tick labels accordingly so it reads the log10 numbers.
I have already tried scale_y_log10 including different breaks and labels but have had limited success
species<-read.table('species.txt',header=TRUE)
library(ggplot2)
ggplot(species, aes(x = site, y = number, fill = species)) +
geom_bar(stat = "identity")+
theme(legend.position="none")+
labs(y="Number of Individuals",x="Sites")