Base R

Scatter-text Plots with Base R

To make scatter plots with text as points in Base R, we simply need to use plot(), set the scatter points to be white, and then plot the text with text(). # Trick R into not displaying points. with(mtcars, plot(wt ~ mpg, pch = 1, col = 'white', xlab = 'MPG', ylab = 'Weight', main = 'Weight vs. MPG')) # Plot the labels on the graph. with(mtcars, text(mpg, wt, row.