Changed the default mapping T=y, L=x and R=z, since it is likely that people new to ternary plots will find this more intuitive.
Modified logic so that T, L and R ALWAYS relate to the Top, Left and Right apex, regardless of assignment in coord_tern(...)