View source: R/theme-novar-tern.R
theme_novar_tern | R Documentation |
This function blanks the grid and axis elements for one variable in a ternary plot.
theme_novar_tern(species, ...)
species |
A character giving the species. Choices are "T", "L" and "R", but is not case sensitive |
... |
Further arguments, including additional selections otherwise used in species |
This function takes a user-specified character corresponding to one of the three
ternary variables, and constructs a theme
function which adds blank elements
for that variable's grid elements and axis elements chosen from the ggtern
package. This new function is then executed which "adds" this theme to the open
ternary plot.
The logic of the species selection is pretty transparent so it may be possible to customize this function to add further affected elements as desired. However the computing on the language which drives this function has not been thoroughly tested. Neither has this function been tested with non-ternary plots available in the ggplot2 framework.
This function is called for the side effect of adding a theme which actually blanks the grid and axis elements for the chosen ternary species.
Nicholas Hamilton, John Szumiloski
base = ggtern() + theme_rgbg()
base + theme_novar_tern("L")
base + theme_novar_tern(c("T","L"))
base + theme_novar_tern('L',R)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.