how to put labels on ggplot2 graph

#1
I have a data and I did PCA on that data
I used the following code

Code:
i.pca=prcomp(tmydf)
scores <- as.data.frame(i.pca$x)
qplot(x = PC1, y = PC2, data = scores, geom = "point",col=race)
I need to put the rownames of tmydf as labels on the graph

how can I do that ?
 

trinker

ggplot2orBust
#2
On my machine I get:

Code:
Error in prcomp(tmydf) : object 'tmydf' not found
Please make this a minimal working example including data that works.