Generation of Figures in Illustrator

From Bridges Lab Protocols
Jump to: navigation, search

From R

  • Make chart in R, make as many as possible changes to text size, labels colors and layout within R
  • Some recommendations:
    • Use ggplot2 library for all figures
    • Add the commands at the end of your figure generation command :

theme_classic() + # to get the overall layout

theme(text = element_text(size=18)) # to increase font

  • Use same library (ie ggplot), font sizes etc for all figures in a paper. If you need to create multiple versions of a figure in R that is fine.
  • Create an illustrator file, with artboards for each figure panel (if for a paper)
  • Drag the pdf file from the figures folder in your R script onto the artboard. For ease of use do not resize figure.
  • Add a panel indicator (i.e. "A.") for each figure
  • Note in the README.md file where the script is located (in the git repository) and which pdf file was used


Notes

  • Use font Arial
  • Use 11 pt for most labels and 8pt for axis labels
  • Use 18 pt for panel lettering
  • For lines use a stroke of 2