Re: [R] deleting an arow added to a graphic

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Wed 06 Sep 2006 - 19:47:12 GMT

This does not actually remove it but you could overwrite it with an arrow the same color as the background and then plot a new arrow:

x <- 1:10
plot(x ~ x)
arrows(1, 1, 2, 2)

# revise it
arrows(1, 1, 2, 2, col = "white")
arrows(2, 2, 3, 3)

On 9/6/06, Graham Smith <myotisone@gmail.com> wrote:
> I know this has got to be simple, but I have a added an arrow to a graph
> with:
>
> arrows(5,8,8, predict(lmfit,data.frame(x=8)), length=0.1)
>
> but its in the wrong position, correcting it and running again adds an new
> arrow (which is what you would expect) so how do I
>
> a) edit the existing arrow, and
> b) delete it all together
>
> As so often seems to be the case, some of the simplist things seem also to
> be the most difficult to find the answer to.
>
> Many thanks,
>
> Graham
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Thu Sep 07 05:56:07 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 07 Sep 2006 - 07:51:18 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.