grantmcdermott / tinyplot

Lightweight extension of the base R graphics system
https://grantmcdermott.com/tinyplot
Apache License 2.0
261 stars 8 forks source link

ylab doesn't work when `type="hist"` #220

Closed jfb-h closed 2 months ago

jfb-h commented 2 months ago

Hi,

love the package!

The y-label seems to be not set / overwritten by the default for histograms, xlab works though. MWE:

plt(rnorm(1000), type="hist", ylab="")
zeileis commented 2 months ago

Great, thanks for the report. The issue has been fixed recently in #204 but not yet released to CRAN. If you install the development version, your code works as intended:

install.packages("tinyplot", repos = "https://grantmcdermott.R-universe.dev")