Difference between revisions of "Generation of Figures in Illustrator"

From Bridges Lab Protocols
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
==From Excel==
+
==From R==
*Make chart bars black/white/grey in that order
+
 
*Move chart to own tab
+
* Make chart in R, make as many as possible changes to text size, labels colors and layout within R
*Set font Arial and size 22 for labels and 16 for numbering (2x)
+
* Some recommendations:
*Transform ... scale ... 50% in illustrator
+
** Use ggplot2 library for all figures
 +
** Add the commands at the end of your figure generation command :
 +
 
 +
<code>theme_classic() + # to get the overall layout</code>
 +
 
 +
<code>theme(text = element_text(size=18)) # to increase font</code>
 +
 
 +
* 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==
 
==Notes==

Latest revision as of 17:25, 11 November 2019

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