So I was happily using R, being a former "Windows client" by means of Rcommander .
I couldn' get a decent abline, so my question to the developer was:
I have data set nura:
> date gtv ctv
> 1 10/05/07 162.75 342.41
> 2 01/06/07 203.36 350
> 3 08/06/07 170.57 364.78
> 4 15/06/07 88.31 285.28
> 5 22/06/07 35.07 251.12
>
> I make a scatterplot with Rcmdr:
> scatterplot(gtv~ctv, reg.line=FALSE, smooth=FALSE, labels=FALSE,
> boxplots=FALSE, span =0.5, data=nura)
>
> Then I wnat to have vertical line at 300, in the script window:
> abline(v=300)
>
> The result is the graph you see in th PDF enclosed.
>
> I get a shift in my x-values. This happens with all my data in Rcmdr,
> but not when I use plain R.
>
The respons was :
This behaviour has to do with scatterplot() in the car package; it's
not peculiar to the Rcmdr. See the explanation of the reset.par
argument in ?scatterplot: You should set reset.par to FALSE.
(I'm only looking now for a solution to keer this reset.par set FALSE by default
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment