With the new version ggplot2 and scales, I can\'t figure out how to get axis label in scientific notation. For example:
x <- 1:4 y <- c(0, 0.0001, 0.00
Riffing off of Tom's answer above, the following removes + signs, and handles 0 better (the function is anonymously inlined as well):
scale_y_continuous(label= function(x) {ifelse(x==0, "0", parse(text=gsub("[+]", "", gsub("e", " %*% 10^", scientific_format()(x)))))} ) +