Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

theme_rotate

Rotate Ternary Diagram


Description

Convenience function to rotate the diagram by an angle in degrees or radians.

Usage

theme_rotate(degrees = 60, radians = degrees * pi/180)

Arguments

degrees, radians

specify the angle to rotate the plot by in either degrees or radians. If both degrees and radians are specified, then precedence is given to the radians argument. If no value is specified, the plot will rotate by 60 degrees

Author(s)

Nicholas Hamilton

Examples

x = ggtern(data.frame(x=1,y=1,z=1),aes(x,y,z))
for(a in seq(0,60,by=15))
print(x + theme_rotate(a))

ggtern

An Extension to 'ggplot2', for the Creation of Ternary Diagrams

v3.3.0
GPL-2 | file LICENSE
Authors
Nicholas Hamilton [aut, cre]
Initial release
2020-04-9

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.