how to add text in my boxplot?
<p>I have plotted box plot for my data using given command and trying to write text (p-value ) in it.  </p>

<p>Using :</p>

<pre><code>boxplot(data,ylab = prop_index[i])
text(1:2 - 0.4, data[,1]/2, paste("p-value=",p_val)) 
</code></pre>

<p>I applied "text" command but noting has appeared on image. Please tell me appropriate method to apply this command </p>

<p><a href="https://i.stack.imgur.com/wnkf7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wnkf7.png" alt="Box plots are given"></a></p>