WebR sandbox · Integrated Bioanalytics
Loading…
or press Ctrl/⌘ + Enter — highlight part of your code to run just that part
Environment
Caption element checklist
Write the caption into the figure as you go:
labs(caption = str_wrap("Figure 1: …", width = 100)).
ggplot draws a caption as a single line and clips it at the edge of the plot, so a real
paragraph-length caption needs str_wrap() (from stringr, loaded here) to break it
across lines. Mark each item below once your caption covers it; it disappears when you do.