This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
projects:workgroups:notes_on_writing_text_for_the_book [2019/03/13 10:20] schuemie |
projects:workgroups:notes_on_writing_text_for_the_book [2019/03/13 10:21] schuemie [Adding figures] |
||
---|---|---|---|
Line 82: | Line 82: | ||
``` | ``` | ||
- | Here, ''figure1'' is the label that can be used to reference the figure. Only use alphanumeric characters in labels. So not '```{r figure_1}' but '```{r figure1}'. You furthermore must specify a caption and the path to the figure file. | + | Here, ''figure1'' is the label that can be used to reference the figure. Only use alphanumeric characters in labels. So not ''```{r figure_1}'' but ''```{r figure1}''. You furthermore must specify a caption and the path to the figure file. |
You can reference the figure in your text for example using ''Figure \@ref(fig:figure1) shows ...''. | You can reference the figure in your text for example using ''Figure \@ref(fig:figure1) shows ...''. |