ms609 / Ternary

Create ternary plots in R
https://ms609.github.io/Ternary/
32 stars 3 forks source link

Feature request (general mathematical expressions for ternary contours) #81

Closed EkaitzEsteban87 closed 10 months ago

EkaitzEsteban87 commented 10 months ago

https://github.com/ms609/Ternary/blob/b9377f2e2b66bea5e8f630ccec790436ae7e6132/R/Contours.R#L702

can be updated to

Func(abc[1, inPlot], abc[2, inPlot], abc[3, inPlot],...) allowing to use more a general mathematical expressions such as those coming from linear models lm() ?

Best regards,

ms609 commented 10 months ago

Thanks for the suggestion; I should be able to include this in the 2.3.0 release due on CRAN later this week.

ms609 commented 10 months ago

NB when implementing I had to create a separate parameter for the ... to pass to Func() (separate from contour(...) or legend(...). Can you verify that this is a workable solution for your use cases?

You can install the dev version with devtools::install_github("ms609/Ternary", args = "--recursive")