Dear Sir:
I would like to communicate with R.
I tried Rserve and DCOM. In windows system DCOM can handle R graphics
as follows:
load 'stats/r/rdcom'
'' conew 'prdcom'
┌─┐
│1│
└─┘
Rcmd'x=rnorm(1000)'
Rcmd'hist(x)'
But how can I send calculations by J to R and draw graphs. Rserve can
send them by Rset, but it seems to me that no graphics are available
from R.
load '~system/packages/stats/rdsock.ijs'
'' conew 'prdsock'
┌─┐
│1│
└─┘
x=:?10000$0
'x' Rset x
Rcmdr 'hist(x)'
┌────────────────────────────────
─────────────────────────────────
──────────────────┬──────────────
─────────────────────────────────
─────────────────────────────────
─────────────────────────────────
─────────────────────────────────
─────────────────────────...
│┌───────────────────────────────
────────────────────────┬────────
──────────┬──────┐│┌─────────────
─────────────────────────────────
─────────────────────────────────
──────────┬──────────────────────
─────────────────────────────────
────────────────────────┬...
││┌──────┬──────┬───────────┬────
───┬────┬─────┬────────┐│┌───────
──┬──────┐│`names│││0 0.05 0.1 0.15 0.2 0.25
0.3 0.35 0.4 0.45 0.5 0.55 0.6 0.65 0.7 0.75 0.8 0.85 0.9 0.95
1│472 529 508 505 477 483 478 521 480 480 502 529 512 498 487
528 515 498 511 487│...
│││breaks│counts│intensities│density
│mids│xname│equidist│││histogram│`c
lass││
││└──────────────────────────────
─────────────────────────────────
──────────────────────────┴──────
─────────────────────────────────
─────────────────────────────────
───────┴...
││└──────┴──────┴───────────┴────
───┴────┴─────┴────────┘│└───────
──┴──────┘│
││
...
│└───────────────────────────────
────────────────────────┴────────
──────────┴──────┘│
...
└────────────────────────────────
─────────────────────────────────
──────────────────┴──────────────
─────────────────────────────────
─────────────────────────────────
─────────────────────────────────
─────────────────────────────────
─────────────────────────...
Best regards.
Toshinari Kamakura
+++++++++++++++++++++++++++++
Toshinari Kamakura
Chuo University
1-13-27 Kasuga
Bunkyo-ku
Tokyo 112-8551, Japan
++++++++++++++++++++++++++++++
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm