Re: [R] ggplot barplot error

2014-05-15 Thread Vikram Bahure
Thanks a lot. This is really helpful. On Thu, May 15, 2014 at 8:12 PM, Dennis Murphy wrote: > Hi: > > There are several options, but you shot yourself in the foot by using > cbind() to combine objects of different classes into a matrix, so > everything ends up being a factor because a matrix is

Re: [R] ggplot barplot error

2014-05-15 Thread Dennis Murphy
Hi: There are several options, but you shot yourself in the foot by using cbind() to combine objects of different classes into a matrix, so everything ends up being a factor because a matrix is an atomic object with a dim attribute, and atomic objects must have a common class, so Flows and Categor

Re: [R] ggplot barplot error

2014-05-15 Thread arun
Hi, Please post in plain text. (lots of "*") May be this helps: Date <- c("2014-04-01","2014-04-02","2014-04-03","2014-04-04","2014-04-07", "2014-04-09","2014-04-10","2014-04-01","2014-04-02","2014-04-03", "2014-04-04","2014-04-07","2014-04-09","2014-04-10") Flows <- c(479.6,187.2,  148.6,   41.

[R] ggplot barplot error

2014-05-15 Thread Vikram Bahure
Hi, I am facing issue with ggplot plotting. I have given the data and the code below. I have also attached the graph below. Problem: On date "*2014-04-07*", we have debt and equity flow, but it does not shows equity flow. Ideally what I would like is the stack for debt/equity starts from X axis.