When knitting my R Markdown document (papaja::apa6_pdf), my figure caption appears in the figure legend. This is the code to generate my figure:
{r RT_pilot, echo=FALSE, fig.cap="\\label{fig:RT_pilot}Median search time."}
ggplot(data=median_search_times,
aes(x=set_size, y=median_RT, group=response)) +
geom_line(aes(linetype = response))
My YAML is
title : "my title"
shorttitle : "short title"
author:
- name : "me"
# affiliation : "1"
# corresponding : yes # Define only one corresponding author
# address : "Postal address"
# email : "my@email.com"
- name : "my supervisor"
authornote: |
abstract:
<!-- -->
keywords : "keywords"
wordcount : "X"
bibliography : ["r-references.bib"]
floatsintext : yes
figurelist : no
tablelist : no
footnotelist : no
linenumbers : yes
mask : no
draft : no
documentclass : "apa6"
classoption : "man"
output : papaja::apa6_pdf
In the output file, my figure legend is:
"Figure 2. (#fig:RT_pilot)Median search time by distractor set size for the two search tasks and two responses. Correct responses only. Error bars represent the standard error of the median."
How can I make the figure label disappear?