ggplot2 - Forcing a 1e3 instead of 1000 format in ggplot R -
i'm having trouble y formatting ranges.  when use scale_y_log10() in plot, decides having scale 0.1, 10, 1000 way it.  need display 1e-1, 1e1, 1e3.  math_format page not helpful without format need know.
anything can answer will.
you can use breaks , labels parameters of scale_y_log10 in
library(ggplot2)  ggplot(data=subset(movies, votes > 1000)) +   aes(x = rating, y = votes / 10000) +   scale_y_log10(breaks = c(0.1, 1, 10), labels = expression(10^-1, 10^0, 10^1)) +   geom_point()   this might not elegant solution, works if have limited number of plots.
Comments
Post a Comment