Re: [R] Hydrology plots in R

2010-07-23 Thread Deepayan Sarkar
On Thu, Jul 22, 2010 at 7:56 AM, Sam Albers wrote: > Hello, > > I am trying to create a plot often seen in hydrodynamic work than includes a > contour plot representing the water speed with arrows pointing in the > direction of flow. Does anyone have any idea how I might add arrows based on > wf$a

Re: [R] Hydrology plots in R

2010-07-23 Thread Jim Lemon
On 07/23/2010 12:56 AM, Sam Albers wrote: Hello, I am trying to create a plot often seen in hydrodynamic work than includes a contour plot representing the water speed with arrows pointing in the direction of flow. Does anyone have any idea how I might add arrows based on wf$angle (in the exampl

Re: [R] Hydrology plots in R

2010-07-22 Thread Jonathan Christensen
Sam, I recommend taking a look at the ggplot2 package. This page from the author's website contains an example of what I think you are trying to achieve: http://had.co.nz/ggplot2/geom_segment.html Obviously, this would require doing the whole plot in ggplot2, but that's not at all unpleasant. Th

[R] Hydrology plots in R

2010-07-22 Thread Sam Albers
Hello, I am trying to create a plot often seen in hydrodynamic work than includes a contour plot representing the water speed with arrows pointing in the direction of flow. Does anyone have any idea how I might add arrows based on wf$angle (in the example below) to the plot below? Thanks in advan