label points in plot in r

Solutions on MaxInterview for label points in plot in r by the best coders in the world

showing results for - "label points in plot in r"
Monica
17 Nov 2016
1# Example of labeling points
2attach(mtcars)
3plot(wt, mpg, main="Milage vs. Car Weight",
4   xlab="Weight", ylab="Mileage", pch=18, col="blue")
5text(wt, mpg, row.names(mtcars), cex=0.6, pos=4, col="red")