I\'ve tough time with ggplot2 when used in function or S4. Here is my code without function:
rm(list=ls(all=TRUE)) library(nlme) data(Oats) Data <- Oats
p <- p + geom_text(aes(label = row.names(G)), size = 3, vjust = 1.25, colour = "black")
You're providing it with a layer, but no data to plot. Either move label= into your original call to ggplot or provide geom_text() with a data= argument
label=
geom_text()
data=