Difference between revisions of "Generation of Figures in Illustrator"
From Bridges Lab Protocols
Davebridges (Talk | contribs) (first page) |
Davebridges (Talk | contribs) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | ==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 : | ||
+ | |||
+ | <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== | ||
*Use font Arial | *Use font Arial | ||
*Use 11 pt for most labels and 8pt for axis labels | *Use 11 pt for most labels and 8pt for axis labels | ||
*Use 18 pt for panel lettering | *Use 18 pt for panel lettering | ||
+ | *For lines use a stroke of 2 |
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