How to reverse the values of the axis
jguo83 opened this issue · comments
Hi Martin,
The ternary package is super easy to use for me, a beginner of R programming. And I'm stuck in one problem.
I want to reverse the values of the axis, for example, the axis I got right now is from 100 to 0 from the top to the left bottom, how can I change it from 0 to 100 from the top to the left bottom? (The same for the other two axis)
Thanks a lot!!
Hi @jguo83 ,
Glad to hear that you are getting on well with the package.
I'm afraid that I'm not sure that I completely understand your question. I can't envision how a ternary plot would work if "100" was at the opposite side of the triangle from the relevant corner.
If you just want to change the labelling, you can use
TernaryPlot(axis.labels=seq(100, 0, by=-10))
If you want to change the orientation of the triangle, try
TernaryPlot(point='down')
If you want to change the position of the axis labels (so that horizontal lines are labelled on the right hand side of an upwards-pointing plot rather than the left), then this isn't currently possible, and I'd be interested to hear more about the use case that makes this necessary -- it would be feasible to implement in a future release, but would take quite a bit of work.
Hi @jguo83 ,
Glad to hear that you are getting on well with the package.
I'm afraid that I'm not sure that I completely understand your question. I can't envision how a ternary plot would work if "100" was at the opposite side of the triangle from the relevant corner.
If you just want to change the labelling, you can use
TernaryPlot(axis.labels=seq(100, 0, by=-10))
If you want to change the orientation of the triangle, try
TernaryPlot(point='down')
If you want to change the position of the axis labels (so that horizontal lines are labelled on the right hand side of an upwards-pointing plot rather than the left), then this isn't currently possible, and I'd be interested to hear more about the use case that makes this necessary -- it would be feasible to implement in a future release, but would take quite a bit of work.