将行内容作为标签包含在R图中
答
作为答案发帖。如jbaums所述,使用text()
。这个例子直接从http://www.statmethods.net/advgraphs/axes.html
attach(mtcars)
plot(wt, mpg, main="Milage vs. Car Weight",
xlab="Weight", ylab="Mileage", pch=18, col="blue")
text(wt, mpg, row.names(mtcars), cex=0.6, pos=4, col="red")
如下看看'?text' – jbaums 2014-10-04 10:15:10
是的,'文本()'和'row.names()',检查出http://www.statmethods.net/advgraphs /axes.html – 2014-10-04 10:18:23