Learn R Programming

ggtern (version 2.1.4)

ggtern_themes: ggtern themes

Description

Themes set the general aspect of the plot such as the colour of the background, gridlines, the size and colour of fonts.

Usage

theme_ggtern(base_size = 11, base_family = "")
theme_gray(base_size = 11, base_family = "")
theme_bw(base_size = 12, base_family = "")
theme_linedraw(base_size = 12, base_family = "")
theme_light(base_size = 12, base_family = "")
theme_minimal(base_size = 12, base_family = "")
theme_classic(base_size = 12, base_family = "")
theme_dark(base_size = 12, base_family = "")
theme_void(base_size = 12, base_family = "")
theme_darker(base_size = 12, base_family = "")
theme_custom(base_size = 12, base_family = "", tern.plot.background = "white", tern.panel.background = "grey92", col.T = "black", col.L = "black", col.R = "black", col.grid.minor = "white")
theme_rgbw(base_size = 12, base_family = "")
theme_rgbg(base_size = 12, base_family = "")

Arguments

base_size
base font size
base_family
base font family
tern.plot.background
colour of background colour to plot area
tern.panel.background
colour of panel background of plot area
col.T
colour of top axis, ticks labels and major gridlines
col.L
colour of left axis, ticks, labels and major gridlines
col.R
colour of right axis, ticks, labels and major gridlines
col.grid.minor
the colour of the minor grid theme_custom is a convenience function to allow the user to control the basic theme colours very easily.

Details

Examples

Run this code
data(Feldspar)
p <- ggtern(Feldspar,aes(Ab,An,Or)) + 
     geom_point(aes(colour=T.C,size=P.Gpa)) + 
     facet_wrap(~Feldspar)

#Uncomment to run
p + theme_gray()
p + theme_rgbg()
p + theme_dark()

Run the code above in your browser using DataLab