On May 12, 2016, at 1:31 PM, William Dunlap <wdunlap at tibco.com> wrote:
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:
Hello, I can't post my code since it's on a work computer.
But basically, I have a dataframe that has two columns, one is a string and the other is an integer. I want to turn this into a vertival barplot where on the x-axis I have the string in the first columb and then the plot will display the integer count.
I have found many examples online and most of those matched either odd edge cases or putting the data into a format that strips out some of the data and I can't use it later.
This should be a breeze, what am I missing?