[R] Contour plot on a triangular mesh

Jim Lemon jim at bitwrit.com.au
Sat Jan 21 11:13:51 CET 2012


On 01/20/2012 11:28 PM, Roary wrote:
> Hi All,
>
> I have 3 variables which present a perfect linear dependency such that the
> third is the sum of the first two. I have an ordinary 2D contour plot on a
> square grid with the first two variables forming the axes and the third
> naturally being the diagonals. From an interpretive point of view it would
> be nice to plot these two variables on a finer grid such that the third can
> have the same scaling (i.e. a finer grid) as the first two and this would
> look better on a triangular mesh. Is this possible in R?
>
Hi Roary,
Have a look at the triax.fill function in the plotrix package.

Jim



More information about the R-help mailing list