Hello R users:
I am still new to R and have a question that I hope is pretty simple to
solve with some additional help. The following code provides some sample
data for a scatterplot I am trying to create. As you can see, I am plotting
the values using the row names.
x.sample <- rnorm(10, 50, 2)
y.sample <- rnorm(10, 50, 1)
z.names <- 1:10
data.example <- data.frame(x.sample, y.sample, z.names)
row.names(data.example) <- data.example$z.names
plot(x.sample, y.sample, type = "n", ylab="y values",
xlab="x values")
text(x = x.sample, y = y.sample, labels = row.names(data.example), cex=.75)
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?
Thanks in advance.
-Brian
[[alternative HTML version deleted]]