[R] Strange behaviour in "points"

Ernesto Jardim ernesto at ipimar.pt
Sat Feb 2 22:42:43 CET 2002


Yes, you're rigth !

With points(-15,57.5) it works.

Regards

EJ

Uwe Ligges wrote:

>Ernesto Jardim wrote:
>
>>Hi
>>
>>I'm using R Version 1.4.0 Patched (2002-01-16) in a SuSE 7.1 box.
>>
>>I've a plot with the european coastline. After I want to plot a single
>>point in the map using points, but it plots this point in the wrong
>>place.
>>
>>Why is this happening ? Is there a known problem of the points function
>>?
>>
>>Regards
>>
>>EJ
>>
>>>plot(eucoast,type="l")
>>>points(c(-15.0,57.5))
>>>
>
>Let me guess, and sorry if I am wrong:
>
>You want to plot the point at   
> x = -15
> y = 57.5
>
>but you told R to plot it at:
> x = 1, 2
> y = -15, 57.5
>
>So what you should try is:
> points(-15.0, 57.5)
>
>
>>ps: shall I send the dat file with the eu coastline ? it´s 56 Kbytes
>>compressed.
>>
>
>Maybe there is no need to do this, but if so, just put it on your web
>page and tell us the location (reducing bandwidth).
>
>Uwe Ligges
>-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
>r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
>Send "info", "help", or "[un]subscribe"
>(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
>_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://stat.ethz.ch/pipermail/r-help/attachments/20020202/28c3c657/attachment.html


More information about the R-help mailing list