Displaying 1 result from an estimated 1 matches for "labelstouse".
2012 Sep 14
1
Adding annotations to qplot from a data frame
...5
2007 CYA 134.174
2007 BAC 485.405
2007 CHL 11.454
2007 CYA 104.721
...which makes a fine stacked bar plot using:
> qplot(year, data=algaedata, binwidth=1, weight=cellsperml, fill = DIV)
Now I want to annotate along the X-axis with the text "numb" from the
following data frame:
> labelstouse =
x y numb
2001 0 45
2002 0 77
2003 0 2
2004 0 44
2005 0 98
2006 0 55
2007 0 1
For instance, the following did not work:
> qplot(year, data=algaedata, binwidth=1, weight=cellsperml,fill = DIV) +
> grid.text(x = labelstouse$x, y = labelstouse$y, label = labelstouse$numb)
I get the error &qu...