Plotting occurrences of patches against increasing distance from turtle
<p>I have searched through existing questions but could not find an answer to this yet.</p>

<p>I have a model simulating spatial pattern across a landscape and would like to  plot, on Netlogo, the occurrences of patches with specified colors on y-axis against increasing distance from a specific turtle. I have looked through the models library but most of the plots were against time, which is not relevant in my case since I am not simulating temporal changes. </p>

<p>So far, from existing models, the idea I've got is I should have this line </p>

<pre><code>count patches with [pcolor = red] 
</code></pre>

<p>But how do I setup the plot in a way to get it to count against increasing distance instead of the usual time steps? Thanks in advance!  </p>