My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 34: Making a Sankey Chart
1 person starred this issue and may be notified of changes. Back to list
Status:  WontFix
Owner:  ----
Closed:  Mar 2014


 
Reported by diegofor...@gmail.com, Mar 19, 2014
What steps will reproduce the problem?
I'm trying to build a Sankey Chart with the followig data and commands.

skDat
   edadDonantes edadReceptores weight
4      (50,100]        (20,40]      5
6      (50,100]        (40,60]      5
8      (50,100]        (60,80]      9
10     (50,100]       (80,100]      3
2      (50,100]         [0,20]      1
3        [0,50]        (20,40]      9
5        [0,50]        (40,60]     25
7        [0,50]        (60,80]     20
9        [0,50]       (80,100]      3
1        [0,50]         [0,20]     13

sk1 <- gvisSankey(skDat, from="edadDonantes", to="edadReceptores", weight="weight")
plot(sk1)

What is the expected output? What do you see instead?
My expected output is a sankey chart with the categories of edadDonantes and edadReceptores ordered as in the input file, but I get it ordered by the weight. 

What version of the product are you using? On what operating system?

R version 3.0.2 (2013-09-25)
Platform: x86_64-pc-linux-gnu (64-bit)
googleVis_0.5.0-3 shiny_0.7.0 



sessionInfo()
R version 3.0.2 (2013-09-25)
Platform: x86_64-pc-linux-gnu (64-bit)

locale:
 [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C         LC_TIME=C            LC_COLLATE=C         LC_MONETARY=C       
 [6] LC_MESSAGES=C        LC_PAPER=C           LC_NAME=C            LC_ADDRESS=C         LC_TELEPHONE=C      
[11] LC_MEASUREMENT=C     LC_IDENTIFICATION=C 

attached base packages:
[1] splines   stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] pyramid_1.3       multicore_0.1-7   googleVis_0.5.0-3 shiny_0.7.0       Hmisc_3.12-2      Formula_1.1-1    
[7] survival_2.37-7   RMySQL_0.9-3      DBI_0.2-7        

loaded via a namespace (and not attached):
 [1] RJSONIO_1.0-3   bitops_1.0-6    caTools_1.14    cluster_1.14.4  digest_0.6.3    grid_3.0.2     
 [7] httpuv_1.2.0    lattice_0.20-24 rpart_4.1-5     tools_3.0.2     xtable_1.7-1   
Please provide any additional information below.

Hope some one can help me.
Diego
Mar 19, 2014
Project Member #1 markus.g...@googlemail.com
I don't think this is a limitation of googleVis but the Google Chart Tools. Sankey charts are still in beta status.
For more details see https://developers.google.com/chart/interactive/docs/gallery/sankey

Status: WontFix

Powered by Google Project Hosting