I’m getting back into working with R and I need to make a plot with numerous lines from three separate matrices. Currently, I’m using matplot and matlines to get the lines to plot. I want to label each line with its title centered horizontally and vertically on the line and I think there’s a way to do it with labcurve. Unfortunately, I’m only finding the manual page for labcurve and no really clear examples of how to use it when I Google for it.
Can someone give me an example of using labcurve to place a label on a set of plotted lines produced similarly to how I described?
Thanks!
I ended up using thigmophobe.labels from the plotrix package. It works like this:
thigmophobe.labels(labelCoord.x,labelCoord.y,c("Title"),col="darkorange",font=2, cex=1)where labelCoord gives the x and y location where you want your title text to go.