grantmcdermott · GitHub

EDIT: Also decided to export tinylabel as part of this PR. I don't see a reason why not to and it helps to make the documentation cleaner.

Adds support for a "log" convenience keyword as part of the tinylabel logic. Example use:

pkgload::load_all("~/Documents/Projects/tinyplot/")
#> ℹ Loading tinyplot
plt(x = 10^c(10:0), y = 0:10, type = "b", log = "x", xaxl = "log")

Created on 2025-05-08 with reprex v2.1.1

Thoughts?

P.S. Here I assume the default is always log10. Should we delineate the other common base cases too? E.g. "log" (= "ln" = "logb"), vs "log10" vs "log2"? Or is that just over-complicating matters?

Read the original on github.com ↗