I have plotted box plot for my data using given command and trying to write text (p-value ) in it.
Using :
boxplot(data,ylab = prop_index[i])
text(1:2 - 0.4, data[,1]/2, paste("p-value=",p_val))
I applied "text" command but noting has appeared on image. Please tell me appropriate method to apply this command