[R] plotting labels (not values) on xy plot
philb at philbrierley.com
Tue Oct 20 04:10:43 CEST 2009
I have 2 vectors, x and y and have done an xy plot.
I want to plot the label (name?) of the vector on the plot rather than the
text(x,y, labels = x)
gives me the value of x.
text(x,y, labels = labels(x))
gives me something like c("text1","text2"..) plotted for each point
text(x,y, labels = names(x))
print(x) gives me
so how do 'text1' written rather than the value? I know there is a way but I
am just guessing at the moment.
Any pointers greatly appreciated.
View this message in context: http://www.nabble.com/plotting-labels-%28not-values%29-on-xy-plot-tp25968696p25968696.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help