Skip to content
Prev 360873 / 398506 Next

What is the easiest way to turn a dataframe into a barplot?

Does this do what you want?

z <- data.frame(Name=c("One","Three","Twelve","Eleven"), Count=c(1,3,12,11))
with(z, barplot(Count, names=Name, horiz=TRUE))
with(z, barplot(Count, names=Name, horiz=TRUE, las=1))


Bill Dunlap
TIBCO Software
wdunlap tibco.com

On Thu, May 12, 2016 at 10:19 AM, yoursurrogategod at gmail.com <
yoursurrogategod at gmail.com> wrote: