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!
您可能会查看包 directlabels(用户 2011 年的海报价格),它比 labcurve 灵活得多,并且可以与 ggplot 和lattice 一起使用。
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.