Posted By

jeff_jie on 02/07/10


Tagged


Versions (?)

draw dotchart in Python


 / Published in: Python
 

  1. >>> data = r['read.table']('data.csv')
  2. >>> data
  3. <RDataFrame - Python:0x44f760 / R:0x2955dc8>
  4. >>> print data
  5. total sms gprs
  6. A 10 4 6
  7. B 9 4 5
  8. C 9 4 5
  9. D 10 5 5
  10. >>> mtx = r['data.matrix'](data)
  11. >>> r.dotchart(mtx)

Report this snippet  

You need to login to post a comment.