gwern comments on LW survey: Effective Altruists and donations - Less Wrong

18 Post author: gwern 14 May 2015 12:44AM

You are viewing a comment permalink. View the original post to see all comments and the full post content.

Comments (38)

You are viewing a single comment's thread.

Comment author: Douglas_Knight 14 May 2015 04:29:09AM *  9 points [-]

The graphs would be more readable if the log1p transformation applied to the coordinates, but not to the labels.

qplot(Age,Charity,color=EffectiveAltruism,data=survey)+geom_point(size=I(3))+coord_trans(y="log1p")

Unfortunately the choice of labels is not great.

Comment author: gwern 14 May 2015 04:42:03PM 7 points [-]

Thanks, I didn't know ggplot2 had a feature like that. Some more googling reveals you can override the ticks on the axis by specifying your own breakpoints on the y-axis, so one can write:

qplot(Age, Charity, color=EffectiveAltruism, data=survey) + geom_point(size=I(3)) +
scale_y_continuous(breaks=round(exp(1:10))) + coord_trans(y="log1p")

which yields more labels for the lower range of donations: