I have a data.frame with 10-15 entries which looks like this:
group time1 time2 time3
1 F18 4394.500 21043.50 14949.00
2 F25 4678.000 23727.65 15683.12
3 F30 4909.775 23487.60 16724.40
I plot this with:
plot(variable[,2:4])
so that a plot with 3 rows and 3 lines for time1, time2 and time3 appears.
Is it somehow possible to label the data points with the values stored in group (F18, F25…)?
I also recommend using ggplot2 (or lattice).
However, you can
use
textto display the label texts at the given locationuse colours according to the group (makes sense only if there are relatively few groups compared to
Note that
plot (data.frame)actually usespairs.Put together: