r - How to construct a histogram from a table? -
i have next data:
v <- c('a','a','h','b','h','a','j','h','a') t <- table(v)
i wish create histogram in ggplot2 table. how can without converting table info frame or vector?
you can't straight table object can utilize vector v
create barplot function qplot()
, geom="bar"
, number of observation calculated automatically.
qplot(v,geom="bar")
r ggplot2
No comments:
Post a Comment