Hi,
I wrote a script and I had as a result the plot (view image). Everything was good until removing the "y axis text". As you can see in the image, on y axis (left), there is a text.
I would like to remove text and ticks and I already used this function: theme(axis.text.y =element_blank(), axis.title.y.left = element_blank()), but it is not working.
Do you have any solution for this problem?
Could be the problem by defining x and y in function "aes(x,y)''?
species_melt<-melt(species)
head(species)
species_melt$porosite <- factor(species_melt$Porosite, levels = c("0,2-3um", "3-90um"))
species_melt$site <- factor(species_melt$Site, levels = c("Laz", "QN", "MIS", "Suf"))
tax<-ggplot(species_melt, aes(site,value))+ theme(axis.text.y =element_blank(), axis.title.y.left = element_blank())
tax + geom_bar(stat="identity" , aes(fill = variable), position = position_stack(reverse = TRUE)) +
coord_flip() +
theme_bw() +
facet_grid(site~porosite, scales = "free_y") +
theme()
Thanks in advance
Amonda