I would like to plot a mean difference between two populations of cells, which is very significative (p<0.001). However the scale used is not suitable to see this difference. Here is my code:
ggplot(sh2_sum, aes(treatment,diameter,fill=treatment)) +
geom_bar(colour='black', width=.7, position=position_dodge(),
stat='identity',size=.2) +
coord_cartesian(ylim=c(0, .4)) +
xlab("") + ylab("Diámetro de la cabeza de la espina (µm)") +
scale_fill_manual(values=c("#009900", "#990000"),name='') +
geom_errorbar(aes(ymin=diameter, ymax=diameter+se),width=.3,
size=.2,position=position_dodge(.7)) +
theme(legend.direction='horizontal',legend.position=c(.5325,-.085),
plot.margin=unit(c(0,1,1,1),'cm'), axis.text.x = element_blank()) +
annotate("text", x=2, y=.355, label="* * *")
This is the graph I get:
I have tried to use scale_y_log10()
but I get the following error:
Error in seq.default(min, max, by = by) : 'from' must be a finite number In addition: Warning message: Transformation introduced infinite values in continuous y-axis
I would like to use a type of scale_y_sqrt
in such a way that values from 0 to 3 are short and then values from 3 to 4 are large, so the difference would be visible
Any ideas?