R ggplot2: using stat_summary (mean) and logarithmic scale

前端 未结 3 1903
被撕碎了的回忆
被撕碎了的回忆 2020-12-07 02:46

I have a bunch of measurements over time and I want to plot them in R. Here is a sample of my data. I\'ve got 6 measurements for each of 4 time points:

value         


        
3条回答
  •  一生所求
    2020-12-07 03:47

    scale_y_log2() will do the transformation first and then calculate the geoms.

    coord_trans() will do the opposite: calculate the geoms first, and the transform the axis.

    So you need coord_trans(ytrans = "log2") instead of scale_y_log2()

提交回复
热议问题