[R] Scatterplot with row.names

Julien Barnier julien at no-log.org
Sat Apr 14 00:42:08 CEST 2007


> What I would like to do now is to bold a few specific values in the plot.
> For example, what would I need to do in order to recreate this plot but make
> make points 2, 7, and 8 bold?

You can add a "font=2" parameter to your text function call.

A quick and dirty way to do it could be :

p <- c(2,7,8)
text(x = x.sample[p], y = y.sample[p], labels = row.names(data.example)[p],
cex=.75, font=2)

Hope that helps,


More information about the R-help mailing list