Skip to content
Prev 106296 / 398506 Next

plot

XinMeng wrote:
What sort of plot do you want?  For a barplot() of x with bars labeled
by id you could do this:

df <- data.frame(id = c("a","b","c"), x = 1:3, stringsAsFactors=FALSE)
with(df, barplot(x, names.arg = id))