What is a reprex and why is it useful?


Figure 1


Figure 2


Figure 3


Identify the problem and make a plan


Figure 1


Figure 2


Figure 3


Figure 4


Minimal Reproducible CodeMaking a reprex


Figure 1

Whoa, this is really overwhelming! Mickey forgot that the dataset includes data for a lot of different rodent species, not just kangaroo rats. Mickey is only interested in two kangaroo rat species: Dipodomys ordii (Ord’s kangaroo rat) and Dipodomys spectabilis (Banner-tailed kangaroo rat).


Figure 2


Figure 3


Figure 4


Minimal Reproducible Data


Figure 1

  • Screenshot of the ratdat comple_old dataset.

  • Asking your question


    Figure 1

    A function called "my_awesome_custom_function" is lurking in my R environment. I must have defined it a while ago and forgotten! Code that includes this function will not run for someone else unless the function definition is also included in the reprex.
    A function called "my_awesome_custom_function" is lurking in my R environment. I must have defined it a while ago and forgotten! Code that includes this function will not run for someone else unless the function definition is also included in the reprex.

    Figure 2


    Figure 3


    Figure 4


    Figure 5


    Figure 6


    Figure 7

    It’s minimal! It’s reproducible! But… what is the problem? This is a perfectly reasonable plot, so without context, your helper won’t know what’s wrong. Let’s explain it to them.


    Figure 8


    Figure 9


    Figure 10