You may have to tell us more about your local specifics (software
version(s) for example).
It appears to be working here on a linux laptop with R-2.9.0 and
rpy2-2.1-dev (and I don't think of much in the recent changes that would
change the way abline is displayed).
Do you plot to an interactive display device or into a file ?
L.
On Mon, 2009-06-29 at 15:45 -0300, Donovan Parks wrote:
> Hello,
>
> I've encoured some difficulty with using RPy to generate a plot
> showing the results of a linear regression. My code is as follows:
>
> r = robjects.r
> xVec = robjects.FloatVector(X)
> yVec = robjects.FloatVector(Y)
> robjects.globalEnv["xVec"] = xVec
> robjects.globalEnv["yVec"] = yVec
> reg = r.lm("xVec ~ yVec")
>
> print(r.summary(reg))
> r.plot(xVec, yVec, xlab="Northing", ylab="Normalized Unique Sequences")
> r.abline(reg, lty=1)
>
> This all works except the last line. My resulting plot shows my data
> points, but not the regression line. Has anyone encountered this
> problem before? Thanks for any and all help. I'm new to RPy\R so
> perhaps am missing something simple here.
>
> Cheers,
> Donovan
>
>
> PS: Thanks for your help Laurent on accessing the adj. r-squared value.
>
> ------------------------------------------------------------------------------
> _______________________________________________
> rpy-list mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/rpy-list
------------------------------------------------------------------------------
_______________________________________________
rpy-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rpy-list