Learn R Programming

ggtern (version 2.1.1)

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.

theme_rgbg is a theme with grey background, red, green and blue axes and gridlines

Usage

theme_gray(base_size = 12, base_family = "")

theme_bw(base_size = 12, base_family = "")

theme_linedraw(base_size = 12, base_family = "")

theme_classic(base_size = 12, base_family = "")

theme_void(base_size = 12, base_family = "")

theme_rgbg(base_size = 12, base_family = "")

theme_rgbw(base_size = 12, base_family = "")

theme_minimal(base_size = 12, base_family = "")

theme_dark(base_size = 12, base_family = "")

theme_darker(base_size = 12, base_family = "")

theme_light(base_size = 12, base_family = "")

theme_custom(base_size = 12, base_family = "", tern.plot.background = "grey92", tern.panel.background = "white", col.T = "gray95", col.L = "gray95", col.R = "gray95", col.BG = "transparent", col.grid.minor = "gray90")

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.BG
colour of the plot background area
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

[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

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