traitecoevo / baad.data

Access data in baad
Other
6 stars 4 forks source link

Added labeller function and updated dependencies #10

Closed the-Hull closed 4 years ago

the-Hull commented 4 years ago

Dear devs,

thanks for the effort you've put into this package / data set. In trying to re-build the package with a unit labelling function, I noticed issues with tests (storr::hash_object()) causing my builds to fail.

I updated the dependencies in (including a md5 hash) in the tests, and added the labeller function (with documentation and corresponding tests) - perhaps somebody will find it useful.

Cheers and stay healthy, Alex

dfalster commented 4 years ago

Hi @the-Hull ! Thanks heaps for this. Really appreciate your input and suggestions for new features. I'll be interested to see the labeller function. I'll check this out in detail hopefully next week. But just wanted to say a quick thank you in the meantime.

the-Hull commented 4 years ago

No worries! Quick example:

libary(baad.data)

bd <- baad_data()

xlab <- baad_labeller(bd$dictionary, "r.st", as_expression = TRUE)
ylab <- baad_labeller(bd$dictionary, "h.t", as_expression = TRUE)

plot(bd$data$r.st, bd$data$h.t, xlab = xlab, ylab = ylab)