Package: ggtern 3.5.0

Nicholas Hamilton

ggtern: An Extension to 'ggplot2', for the Creation of Ternary Diagrams

Extends the functionality of 'ggplot2', providing the capability to plot ternary diagrams for (subset of) the 'ggplot2' geometries. Additionally, 'ggtern' has implemented several NEW geometries which are unavailable to the standard 'ggplot2' release. For further examples and documentation, please proceed to the 'ggtern' website.

Authors:Nicholas Hamilton [aut, cre]

ggtern_3.5.0.tar.gz
ggtern_3.5.0.tar.gz(r-4.5-noble)ggtern_3.5.0.tar.gz(r-4.4-noble)
ggtern_3.5.0.tgz(r-4.4-emscripten)ggtern_3.5.0.tgz(r-4.3-emscripten)
ggtern.pdf |ggtern.html
ggtern/json (API)
NEWS

# Install 'ggtern' in R:
install.packages('ggtern', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Datasets:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

6.99 score 4 stars 5 packages 1.1k scripts 3.1k downloads 48 mentions 226 exports 42 dependencies

Last updated 8 months agofrom:d628105c35. Checks:OK: 1 NOTE: 1. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 20 2024
R-4.5-linuxNOTENov 20 2024

Exports:aesannotateannotation_raster_ternarrangeGrobatomic_percentbreaks_terncoord_ternCoordTerncustom_percentdraw_key_crosshair_terndraw_key_Lisodraw_key_Llinedraw_key_Lmarkdraw_key_point_swapdraw_key_Risodraw_key_Rlinedraw_key_Rmarkdraw_key_Tisodraw_key_Tlinedraw_key_Tmarkelement_ternaryfind_global_terngeom_confidencegeom_confidence_terngeom_crosshair_terngeom_density_terngeom_errorbarLgeom_errorbarRgeom_errorbarTgeom_hex_terngeom_interpolate_terngeom_label_viewportgeom_Lisopropgeom_Llinegeom_Lmarkgeom_maskgeom_mean_ellipsegeom_point_swapgeom_polygon_closedgeom_Risopropgeom_Rlinegeom_Rmarkgeom_smooth_terngeom_text_viewportgeom_Tisopropgeom_Tlinegeom_Tmarkgeom_tri_ternGeomConfidenceTernGeomCrosshairTernGeomDensityTernGeomErrorbarlGeomErrorbarrGeomErrorbartGeomHexTernGeomInterpolateTernGeomLabelViewportGeomLisopropGeomLlineGeomLmarkGeomMaskGeomMeanEllipseGeomPointSwapGeomPolygonClosedGeomRasterAnnTernGeomRisopropGeomRlineGeomRmarkGeomSmoothTernGeomTextViewportGeomTisopropGeomTlineGeomTmarkGeomTriTerngetBreaksgetLabelsggplotggplot_buildggplot_gtableggplotGrobggsaveggternggtern.multigrid.arrangekde2d.weightedlabels_ternLarrowlablayer_datalimit_ternlimits_ternLlabllineLlinemahalanobis_distancepercent_atomicpercent_custompercent_weightpoint.in.sequenceposition_jitter_ternposition_nudge_ternPositionJitterTernPositionNudgeTernRarrowlabrgb2hexRlabrlineRlinescale_L_continuousscale_R_continuousscale_T_continuousstat_confidencestat_confidence_ternstat_density_ternstat_hex_ternstat_interpolate_ternstat_mean_ellipsestat_smooth_ternstat_tri_ternStatConfidenceTernStatDensityTernStatHexTernStatInterpolateTernStatMeanEllipseStatSmoothTernStatTriTernTarrowlabtern_anticlockwisetern_clockwisetern_counterclockwisetern_limittern_limitstheme_anticlockwisetheme_arrowbaselinetheme_arrowcustomlengththeme_arrowdefaulttheme_arrowlargetheme_arrowlengththeme_arrowlongtheme_arrownormaltheme_arrowshorttheme_arrowsmalltheme_bluedarktheme_bluelighttheme_bordersonbottomtheme_bordersontoptheme_bvbgtheme_bvbwtheme_bwtheme_classictheme_clockwisetheme_counterclockwisetheme_customtheme_darktheme_darkertheme_ggterntheme_graytheme_gridsonbottomtheme_gridsontoptheme_hidearrowstheme_hidegridtheme_hidegrid_majortheme_hidegrid_minortheme_hidelabelstheme_hidelatextheme_hidemasktheme_hideprimarytheme_hidesecondarytheme_hidetickstheme_hidetitlestheme_latextheme_legend_positiontheme_lighttheme_linedrawtheme_matrixtheme_meshtheme_minimaltheme_noarrowstheme_nogridtheme_nogrid_majortheme_nogrid_minortheme_nolabelstheme_nolatextheme_nomasktheme_noprimarytheme_nosecondarytheme_notickstheme_notitlestheme_novar_terntheme_rgbgtheme_rgbwtheme_rotatetheme_showarrowstheme_showgridtheme_showgrid_majortheme_showgrid_minortheme_showlabelstheme_showlatextheme_showmasktheme_showprimarytheme_showsecondarytheme_showtickstheme_showtitlestheme_tern_nogridtheme_tern_nogrid_majortheme_tern_nogrid_minortheme_ticklengththeme_ticklength_majortheme_ticklength_minortheme_ticksinsidetheme_ticksoutsidetheme_tropicaltheme_voidtheme_zoom_centertheme_zoom_Ltheme_zoom_Mtheme_zoom_Rtheme_zoom_TTlabtlineTlinetlr2xytransform_position_ternweight_percentWlabxy2tlrzlab

Dependencies:bayesmclicolorspacecompositionsDEoptimRfansifarverggplot2gluegridExtragtablehexbinisobandlabelinglatex2explatticelifecyclemagrittrMASSMatrixmgcvmunsellnlmepillarpkgconfigplyrprotoR6RColorBrewerRcppRcppArmadillorlangrobustbasescalesstringistringrtensorAtibbleutf8vctrsviridisLitewithr

Readme and manuals

Help Manual

Help pageTopics
OLD FUNCTIONS new_panel','train_layout','train_position','train_ranges','map_position','map_layout','reset_scales','facet_render', xlabel','ylabel' expand_default', ## REMOVED.getFunctions
Modified Aesthetic Mappingsaes
Create an annotation layer (ggtern version).annotate
Annotation: High-performance rectangular tiling (ggtern version)annotation_raster_tern GeomRasterAnnTern
Approved Geoms, Stats and Positionsapproved_geom approved_layers approved_position approved_stat
Arrange multiple grobs on a page (ggtern version)arrangeGrob grid.arrange
Generate Axis Breaksbreaks_tern getBreaks
Ternary Coordinate SystemCoordTern coord_tern
Elkin and Groves Feldspar Datadata_Feldspar Feldspar FeldsparRaster
Grantham and Valbel Rock Fragment Datadata_Fragments Fragments
Aichisons Skye Lavasdata_SkyeLava SkyeLava
USDA Textural Classification Datadata_USDA USDA
Aichisons White Cellsdata_WhiteCells WhiteCells
Key drawing functionsdraw_key_crosshair_tern draw_key_Liso draw_key_Lline draw_key_Lmark draw_key_point_swap draw_key_Riso draw_key_Rline draw_key_Rmark draw_key_tern draw_key_Tiso draw_key_Tline draw_key_Tmark
Confidence IntervalGeomConfidenceTern GeomMeanEllipse geom_confidence geom_confidence_tern StatConfidenceTern stat_confidence stat_confidence_tern
Ternary CrosshairsGeomCrosshairTern GeomLmark GeomRmark GeomTmark geom_crosshair_tern geom_Lmark geom_Rmark geom_Tmark
Density Estimate (ggtern version)GeomDensityTern geom_density_tern StatDensityTern stat_density_tern
Ternary Error BarsGeomErrorbarl GeomErrorbarr GeomErrorbart geom_errorbarL geom_errorbarR geom_errorbarT geom_errorbarX
Hexbin (ggtern version).GeomHexTern GeomTriTern geom_hex_tern StatHexTern stat_hex_tern
Ternary InterpolationGeomInterpolateTern geom_interpolate_tern StatInterpolateTern stat_interpolate_tern
Draw Label at Relative Position on ViewportGeomLabelViewport geom_label_viewport
Apply Manual Clipping MaskGeomMask geom_mask
Mean Ellipsegeom_mean_ellipse StatMeanEllipse stat_mean_ellipse
Points (Colour and Fill Swapped), as for a scatterplotGeomPointSwap geom_point_swap
Closed PolygonsGeomPolygonClosed geom_polygon_closed
Add a Smoothed Conditional Mean.GeomSmoothTern geom_smooth_tern StatSmoothTern stat_smooth_tern
Draw Text at Relative Position on ViewportGeomTextViewport geom_text_viewport
Tribin (ggtern version).geom_tri_tern StatTriTern stat_tri_tern
Fixed Value Isoproportion LinesGeomLisoprop GeomRisoprop GeomTisoprop geom_Lisoprop geom_Risoprop geom_Tisoprop geom_Xisoprop
Fixed Value LinesGeomLline GeomRline GeomTline geom_Lline geom_Rline geom_Tline geom_Xline Lline lline Rline rline Tline tline
Create a new ggplot plot.ggplot ggplot.default plot.ggplot print.ggplot
Save a ggplot (or other grid object) with sensible defaults (ggtern version)ggsave grid.draw.ggplot
ggtern Constructorconstructor ggtern
Change Axis labels and legend titlesggtern-labels ggtern_labels Larrowlab larrowlab Llab llab Rarrowlab rarrowlab Rlab rlab Tarrowlab tarrowlab Tlab tlab Wlab wlab zlab
Atomic, Weight or Custom Percentage Suffixatomic_percent custom_percent ggtern_labels_arrow_suffix percent_atomic percent_custom percent_weight weight_percent
Ternary Diagrams in Rggtern-package ggtern_package
ggtern themesggtern_themes theme_bluedark theme_bluelight theme_bvbg theme_bvbw theme_bw theme_classic theme_custom theme_dark theme_darker theme_ggtern theme_gray theme_light theme_linedraw theme_matrix theme_minimal theme_rgbg theme_rgbw theme_tropical theme_void
'label_formatter' is a function that formats / parses labels for use in the grid.label_formatter
Generate Axis LabelsgetLabels labels_tern
Mahalanobis Distancemahalanobis_distance
Jitter Ternary PointsPositionJitterTern position_jitter_tern
Nudge Ternary Points.PositionNudgeTern position_nudge_tern
Prediction data framepredictdf2d
Ternary Position Scalesscale_L_continuous scale_R_continuous scale_T_continuous scale_X_continuous
Strip Unapproved Layersstrip_unapproved
Restrict Ternary Limitslimits_tern limit_tern tern_limit tern_limits
Ternary / Cartesian Transformationternary_transformation tlr2xy xy2tlr
Modify components of a themetheme
Change the Length of the Ternary Arrowstheme_arrowcustomlength theme_arrowdefault theme_arrowlarge theme_arrowlength theme_arrowlong theme_arrownormal theme_arrowshort theme_arrowsmall
Render Borders on Toptheme_bordersonbottom theme_bordersontop
Direction of Ternary Rotationtern_anticlockwise tern_clockwise tern_counterclockwise theme_anticlockwise theme_clockwise theme_counterclockwise
List of Available Themestheme_complete
Theme Convenience Functionsconvenience_functions theme_convenience theme_convenience_functions
New Theme Elementstheme_elements
Render Grids on Toptheme_gridsonbottom theme_gridsontop
Parse Labels w Latex Markuptheme_hidelatex theme_latex theme_nolatex theme_showlatex
Position Legend in Convenient Locationstheme_legend_position
Create Grid Meshtheme_mesh
Show or Hide the Ternary Arrowstheme_hidearrows theme_noarrows theme_showarrows
Show or Hide the Clipping Masktheme_hidemask theme_nomask theme_showmask
Blank one variable's annotations in ternary plottheme_novar_tern
Rotate Ternary Diagramtheme_rotate
Show or Hide Gridtheme_hidegrid theme_hidegrid_major theme_hidegrid_minor theme_nogrid theme_nogrid_major theme_nogrid_minor theme_showgrid theme_showgrid_major theme_showgrid_minor theme_tern_nogrid theme_tern_nogrid_major theme_tern_nogrid_minor
Show or Hide Axis Ticklabelstheme_hidelabels theme_nolabels theme_showlabels
Show or Hide the Primary/Secondary Tickstheme_hideprimary theme_hidesecondary theme_hideticks theme_noprimary theme_nosecondary theme_noticks theme_showprimary theme_showsecondary theme_showticks
Show or Hide the Axis (Apex) Titlestheme_hidetitles theme_notitles theme_showtitles
Modify the Ticklengthstheme_ticklength theme_ticklength_major theme_ticklength_minor
Place Ticks Inside or Outsidetheme_ticksinside theme_ticksoutside
Zoom on Plot Regiontheme_zoom theme_zoom_center theme_zoom_L theme_zoom_M theme_zoom_R theme_zoom_T theme_zoom_X
Depreciated FunctionsclipPolygons element_ternary ggtern.multi multi multiplot point.in.sequence polyclip tern_stop theme_arrowbaseline zzz-depreciated