[R] A ternary graph's scales

Greg Snow Greg.Snow at imail.org
Thu Sep 4 18:00:58 CEST 2008


There is also the tri function in the cwhtool package, triax.plot in the plotrix package, and triplot in the TeachingDemos package (I think it is between this plot and progress bars as to what functionality is reproduced in the most packages).  One of the others may do what you want, or be modifiable to do what you want.

The triplot (TeachingDemos) does not put scales on by default, but does had an 'add' argument that could possibly be used to add scales after the fact, or the code is fairly short and simple to see what the transformation is to add scale manually.

Hope this helps,

--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at imail.org
(801) 408-8111



> -----Original Message-----
> From: r-help-bounces at r-project.org
> [mailto:r-help-bounces at r-project.org] On Behalf Of Marcin Kozak
> Sent: Thursday, September 04, 2008 8:34 AM
> To: r-help at r-project.org
> Subject: [R] A ternary graph's scales
>
> Hi all,
>
> I am drawing a ternary graph. Everything is fine with both
> ternaryplot (package vcd) and triangle.plot (package ade4),
> but I want to present scales in neither percents nor from 0
> to 1 (this is actually the only option I found in both
> functions). I want the scales to be in a natural scale (from
> 0 to k, k being the number of objects). Is it at all
> possible? (Descriptions of both functions do not mention this
> possibility.)
>
> Thanks,
> Marcin
>
> --
> "Build up your weaknesses until they become your strong
> points" -- Knute Rockne
>
> ______________________________________________
> R-help at r-project.org 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