[R] deleting an arow added to a graphic
Gabor Grothendieck
ggrothendieck at gmail.com
Wed Sep 6 21:47:12 CEST 2006
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 at 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 at 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.
>
More information about the R-help
mailing list