[R] Contour plot on a triangular mesh

Roary Andy_woolston at hotmail.com
Sat Jan 21 11:38:14 CET 2012


Thanks for your responses Jason and Jim. The ternary plot is definitely the
right style with the triangle fill. However, one of the important features
(that perhaps I understated) is that X3 will have more categories than X1
and X2, therefore the triangular shape is not appropriate. If X1 has I
categories and X2 has J categories, then X3 has I+J-1 categories. Therefore,
the overall plot would be in the shape of a parralelogram. Almost like an
extended ternary plot... The goal is to view these unbalanced categories on
the same scaling as each other... Would this be possible to construct?

Thanks again, Roary.


Jim Lemon wrote
> 
> 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
> 
> ______________________________________________
> R-help@ 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.
> 


--
View this message in context: http://r.789695.n4.nabble.com/Contour-plot-on-a-triangular-mesh-tp4313098p4315772.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list