# Here are two options:
p <- ggplot(mtcars, aes(wt, mpg)) + geom_point() + geom_text(aes(x = 5, y =
30, label = "A Label"))
#or
response <- c(2,4)
xvar <- c(1,2)
label <- response;
myData <- data.frame(response,xvar,label)
p <- ggplot(myData, aes(y=response, x=xvar))
p + geom_bar(position="dodge
is there a way to label points in a graph using text(locator(1),"text")
after ggplot() or qplot() ?
> qplot(date, psavert, data = economics, geom = "line",main="jhdjd")->p
> p+opts(text(locator(1),""),new=T)
does not work.
--
View this message in context:
http://www.nabble.com/text%28%29-t
2 matches
Mail list logo