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

[R] Ordering in Sankey diagram using R and googleVis

2015-07-22 Thread Angela via R-help
Hello, I am trying to figure out if there is a way to order the left side of a Sankey diagram from most frequent to least frequent. I am using R version 3.2.1 and using googleVis version 0.5.9 for the Sankey. I've tried sorting, but that does not work. Is there anyway to force it to arrange the