draw dotchart in Python


/ Published in: Python
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.