Name a figure chunk with a name like figure99-1 and include fig.cap=“something” then reference it like this: \@ref(fig:figure99-1)
\@ref(fig:figure99-1)