Re: [R] Ordering in Sankey diagram using R and googleVis

2015-07-23 Thread Angela via R-help
Hi Jim, I tried it and it while it does make the diagram look more like what I want, there are a few categories still out of order. Thank you for your help! -Angela On Thu, 7/23/15, Jim Lemon wrote: Subject: Re: [R] Ordering in Sankey diagram

Re: [R] Ordering in Sankey diagram using R and googleVis

2015-07-23 Thread Jim Lemon
Hi Angela, Assuming that your reformatted data is named "data", have you tried: data[order(data$count,data$before,decreasing=TRUE),] Jim On Thu, Jul 23, 2015 at 3:15 AM, Angela via R-help wrote: > Hello, > > I am trying to figure out if there is a way to order the left side of a > Sankey diagr