Hi,

I have a simple histogram that I would like to create using R, but in the
process, I have encounted some sort of graphics error:

http://dl.dropbox.com/u/347546/rplot.png

The histogram has clearly been plotted by the values of my array are shown
as well. Does anyone know what may fix this?

Thanks,
Shyam

Code:

import rpy2.robjects as robjects
from rpy2.robjects.packages import importr

<snip>
#lengthInt holds an array of integer values

r = robjects.r
r.options('echo=FALSE')
lengthsR = robjects.IntVector(lengthInt)

grdevices = importr('grDevices')
grdevices.png(file="rplot.png", width=512, height=512)
r.hist(lengthsR)

grdevices.dev_off()

--
Lab of William Clemons
California Institute of Technology
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to