How to add jitter in a data frame in R
<p>Input:</p>

<pre><code>df = data.frame(col1 = 1:5, col2 = 5:9)
rownames(df) &lt;- letters[1:5]


#add jitter
jitter(df) #Error in jitter(df) : 'x' must be numeric
</code></pre>

<p>Expected output: jitter will be added to the columns of <code>df</code>. Thanks!</p>