TernaryApp | R Documentation |
TernaryApp()
launches a 'Shiny' application for the construction of
ternary plots. The 'app' allows data to be loaded and plotted, and provides
code to reproduce the plot in R should more sophisticated plotting functions
be desired.
TernaryApp()
The 'Load data' input tab allows for the upload of datasets.
Data can be read from csv files, .txt
files created with write.table()
,
or (if the 'readxl' package is installed) Excel spreadsheets.
Data should be provided as three columns, corresponding to the three axes
of the ternary plot. Colours or point styles may be specified in columns
four to six to allow different categories of point to be plotted distinctly.
Example datasets are installed at
system.file("TernaryApp", package = "Ternary")
.
Axes are automatically labelled using column names, if present; these can be edited manually on this tab.
Allows the orientation, colour and configuration of the plot and its axes to be adjusted,
Adjust the number, spacing and styling of major and minor grid lines.
Configure the colour, position and size of tip and axis labels.
Choose whether to plot points, lines, connected points, or text. Set the style of points and lines.
A plot can be saved to PDF or as a PNG bitmap at a specified size. Alternatively, R script that will generate the displayed plot can be viewed (using the 'R code' output tab) or downloaded to file.
Martin R. Smith (martin.smith@durham.ac.uk)
If you use figures produced with this package in a publication, please cite
Smith, Martin R. (2017). Ternary: An R Package for Creating Ternary Plots. Zenodo, doi: \Sexpr[results=rd]{tools:::Rd_expr_doi("10.5281/zenodo.1068996")}.
Full detail of plotting with 'Ternary', including features not (yet) implemented in the application, is provided in the accompanying vignette.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.