Re: [R] arrow on contour line

2024-01-11 Thread Lennart Kasserra
Hi, If I understand your intentions correctly, the simplest way would be to manually insert arrows using `geom_segment()` with the `arrow` argument: ``` ggplot(data = d1, aes(x=X1,y=X2,z=Z))+   stat_contour(breaks = c(2)) +   stat_contour(data=d2, aes(x=X1,y=X2,z=Z), breaks=c(6)) +   geom_seg

Re: [R] arrow on contour line

2024-01-11 Thread Ivan Krylov via R-help
В Wed, 10 Jan 2024 19:13:19 -0500 Deepankar Basu пишет: > I am drawing contour lines for a function of 2 variables at one level > of the value of the function and want to include a small arrow in any > direction of increase of the function. Is there some way to do that? Can you use the informati

Re: [R] arrow on contour line

2024-01-11 Thread Rolf Turner
On Wed, 10 Jan 2024 19:13:19 -0500 Deepankar Basu wrote: > Hello, > > I am drawing contour lines for a function of 2 variables at one level > of the value of the function and want to include a small arrow in any > direction of increase of the function. Is there some way to do that? > > Below