update R Markdown example with YAML frontmatter and named figure (chunk)