Bonjour All,
I need help to find a solution to labeling the scatterplot in boxplot.
As you can see below, there is two data, first is the data of all macrocosmes
The text function should work find. For example,
R> x = rnorm(10)
R> boxplot(x, ylim=c(-3, 3))
R> text(1, 1, "Hi", col=2)
In your example, try something like:
text(1, means, LETTERS[length(means)], col=2)
This should display letters at the red dots. However, in your call to the strip chart function, you have "jittered" or "wiggled" the points. Since you've only a few points, don't jitter them (probably omit the method argument), and the following should work:
text(1.3, means, LETTERS[length(means)], col=2)