[Rpy] using $mids

2012-05-23 Thread Shyam Saladi
Hi, I am creating a histogram and would like to center the labels. I normally do this in R by the following: # x has my data set tmp <- hist(x, breaks=0:(max(x)+1), xaxt="n", right=FALSE, freq=FALSE) axis(1, at=tmp$mids, labels=0:max(x)) In python, tmp$mids gives an error presumably because the

Re: [Rpy] Plotting through rpy2

2012-05-22 Thread Shyam Saladi
Exactly that! Thank you very much! Shyam On Tue, May 22, 2012 at 4:40 PM, Thomas Kluyver wrote: > On 23 May 2012 00:00, Shyam Saladi wrote: > > The histogram has clearly been plotted by the values of my array are > shown > > as well > > It looks like it's tried t

[Rpy] Plotting through rpy2

2012-05-22 Thread Shyam Saladi
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? T