Re: [Rpy] rpy2 with cairo

2009-09-16 Thread Ishwor
Tom Hi. > i want to use R with Python and Cairo. I have the following problem: > > > # Python > from rpy2 import robjects robjects.r('library(Cairo)') > Error in library(Cairo) : es gibt kein Paket 'Cairo' > Traceback (most recent call last): >  F

Re: [Rpy] rpy2 with cairo

2009-09-16 Thread Laurent Gautier
Ishwor wrote: > Tom > Hi. >> i want to use R with Python and Cairo. I have the following problem: >> >> >> # Python >> > from rpy2 import robjects > robjects.r('library(Cairo)') >> Error in library(Cairo) : es gibt kein Paket 'Cairo' >> Traceback (m

[Rpy] RPy vector slice problem

2009-09-16 Thread Leio Wu
Hi, all, I 'm a newbie here. Sorry for bothering if the problem seems too simple. Anyway, I 'v searched in many RPy documents but had no fortune on the "Vector slicing" topic. I wanna do some slicing on a R vector, the following is how I do: >data # r vector

[Rpy] Help w/ a chart with dates for an X axis..

2009-09-16 Thread Wells Oliver
I currently have the following R script that works in console. results <- fetch(dbSendQuery(con, query), n=-1) results$date <- as.POSIXct(results$date) plot(results$date, results$DIFF, ylab="Run differential", xlab="2009", xaxt="n") axis.POSIXct(1, at=seq(min(results$date), max(results$date), leng