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


Figure 5


Figure 6


Figure 7


Minimal reproducible codeMaking a reprex


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