I have several columns (in a data frame) and boxplot them with this command:
boxplot(allm, las=2)
It´s all ok, but I wish to put in the label how many non-missing observations they are in each column (in this case the numeric values, because I have NAs too).
A data frame used to draw a boxplot looks like it:
NE001710 NE001360 NE001398 NE001380 NE001707
-0.12 -0.61 -0.61 -0.02 0.13
-0.58 -0.43 -0.24 -0.27 -0.47
NA 0.19 -0.37 -0.14 -0.53
NA -0.13 -0.27 -0.38 0.05
NA NA 0.32 -0.34 0.01
The desired labels of the boxplot have to be something like NE001710(2)
, NE0011360(4)
... NE001707(5)