ncss-tech / SoilTaxonomy

A System of Soil Classification for Making and Interpreting Soil Surveys
https://ncss-tech.github.io/SoilTaxonomy/
GNU General Public License v3.0
14 stars 2 forks source link

Add `taxonTree()` #44

Closed brownag closed 1 year ago

brownag commented 1 year ago

Draft PR to address #43

brownag commented 1 year ago

OK, I in https://github.com/ncss-tech/SoilTaxonomy/pull/44/commits/37433ea93283c525ebbdb45c7aae6cb0cc2cbd16 have improved the ability to print trees with custom characters. The default is simple ASCII, but more complex (unicode) is allowed.

E.g.:

library(SoilTaxonomy)
x <- taxonTree(c("hapludults", "hapludalfs"))
x <- taxonTree(c("hapludults", "hapludalfs"), special.chars = c("\u251c", "\u2514", "\u2500 "))
x <- taxonTree(c("hapludults", "hapludalfs"), special.chars = "🦨")
dylanbeaudette commented 1 year ago

merge it!