Publication-ready scatter plots in R3 years ago
Basic idea | Getting started | Customization | Change x- and y- axis labels | Have points "jittered" | Change the transparency of the points | Remove points | Add confidence band | Set x- and y- scales manually | Change plot colour | Add correlation coefficient to plot and p-value | Change location of correlation coefficient or p-value | Plot by group | Use full range on the slope/confidence band | Change order of labels on the legend | Change legend labels | Add a title to legend | Plot by group + manually specify colours | Plot by group + use different line types for each group | Plot by group + use different point shapes for each group | Plot by group, point shapes, line types, legend + no colours (black and white) | Putting it all together | Special situation: Add group average | Black line + coloured lines | Black line, coloured dots | Thanks for checking in
rempsyc 0.2.0.7Rémi Thériaultscatter.Rmd