Learn R Programming

ggtern (version 1.0.1.3)

theme_tern_gray: theme_tern_gray ternary theme, gray theme

Description

theme_tern_gray ternary theme, gray theme

theme_tern_rgbg ternary theme, red green blue with gray background

theme_tern_rgbw ternary theme, red green blue with white background

theme_tern_bw ternary theme black and white

Convenience functions to assist in the rapid modification of key theme elements.

theme_noarrows is a function that apepnds to the current theme a flag to switch OFF the ternary arrows

theme_showarrows is a function that apepnds to the current theme a flag to switch ON the ternary arrows

theme_tern_nogrid ternary theme, no minor grids.

theme_tern_nogrid ternary theme, no major grids.

theme_tern_nogrid ternary theme, no major or minor grids.

theme_clockwise is an alias for tern_clockwise

theme_anticlockwise is an alias for tern_anticlockwise

theme_counterclockwise is an alias for tern_counterclockwise

Usage

theme_tern_gray(base_size = 12, base_family = "")

theme_tern_rgbg(base_size = 12, base_family = "")

theme_tern_rgbw(base_size = 12, base_family = "")

theme_tern_bw(base_size = 12, base_family = "")

theme_noarrows()

theme_showarrows()

theme_tern_nogrid_minor()

theme_tern_nogrid_major()

theme_tern_nogrid()

theme_clockwise()

theme_anticlockwise()

theme_counterclockwise()

Arguments

base_size
base font size
base_family
base font family

Examples

Run this code
data(Feldspar)
plot <- ggtern(data=Feldspar,aes(x=An,y=Ab,z=Or)) + geom_point()
plot + theme_showarrows()
plot + theme_noarrows()
plot + theme_showarrows()
plot + theme_tern_rgbg()
plot + theme_tern_rgbw()
plot + theme_tern_bw()
plot + theme_tern_gray()
plot + theme_tern_nogrid_minor()
plot + theme_tern_nogrid_major()
plot + theme_tern_nogrid()

Run the code above in your browser using DataLab