Plotting your results is a key component of your research. Plotting is writing. Writing is rewriting. Thus, plotting is replotting.
While preparing a paper, expect to revise figures many many times!
When people read a paper, they will tend to read title, abstract, then figures. So your figures should be the “plot” of your paper.
That last point re: Photoshop et al. may be somewhat controversial. A lot of people like to touch up colors, etc., using Illustrator or Inkscape. My opinion is that you are much better off getting the figures right in R or in Python. You should expect to revise figures many times. If your figure work flow involves moving things around in Illustrator, then you’ll be doing that many times, too.
Your figures need to look like figures published in the journals that you read. In your journal clubs, pay special attention to this.
General guidelines:
sigma in your plot. Likewise, if you need to write \(\Gamma_{i,j}\), don’t write \(\Gamma ij\) or Gammaij.Fonts and color deserve special mention.
viridis color map. This is the default on Python/matplotlib now, and is an add-on library for R.\subfig environments here, as you can then explicitly \ref each sub-figure.snakemake to keep plots up to date as the data/scripts change.You’ll make figures for exploring data, for lab meeting, for talks, for posters, and for publication. Each of these types will have slightly different needs.
For example, slides for a talk should be much more streamlined than the published version. Many of us fall into a trap of pulling figures directly from papers and putting them into talks. The result is figures with too many extraneous annotations, lines, etc., that distract from the point we are trying to make. (In the paper, the caption would talk about all that stuff. If the caption does not, then you may consider deleting the annotation.)
So, you may consider setting up your plotting work flow along these lines:
plot_common.R reads in the data, and does whatever manipulation is needed to get the data “plot ready”.plot_labmeeting.R, plot_poster.R, etc., may make slightly different versions of the figure.The contents of the latter may look like:
# do the main processing
source("plot_common.R")
# load up your plotting library
library(ggplot2)
# Do the plot here
What plotting things do you have questions about? I may be able to add them into the week’s exercise.