Do you know how to create a plot?
First, use ggplot function to select the data
Then, use aes function to select the variables
Finally, use geom_* function to create a geometric element
Use .detective and data-detective-search to search words to highlight
Use data-detective-bg-color to modify the background color
:::{.detective data-detective-search="ggplot, aes, geom_point" data-detective-bg-color="#4287f5"}
your chunk here...
:::
Combine multiple .detective
:::{.detective data-detective-search="ggplot"}
:::{.detective data-detective-search="aes" data-detective-bg-color="var(--r-primary-color)"}
:::{.detective data-detective-search="geom_point" data-detective-bg-color="black" data-detective-code-color="#fff"}
your chunk here...
:::
:::
:::
data-detective-search search for words to highlight. Use , for multiple words.
data-detective-bg-color background color. Default is yellow
data-detective-code-color code color. Default is black