mark-andrews / psyntur

Tools to help teach data analysis using R to NTU Psychology students
Other
5 stars 2 forks source link

Include a `labels` function in plots #9

Closed lvjustice closed 3 years ago

lvjustice commented 3 years ago

Currently we need to load tidyverse to allow us to change axis labels. It would be good to have this as part of the graphing functions of psyntur so we don't need to load another package.

mark-andrews commented 3 years ago

Fair nuff. Something like this

tukeyboxplot(y = len, x = dose, xlab = 'foo', ylab = 'bar', data = ToothGrowth)

While we are at it, we probably should do axis limits too.

tukeyboxplot(y = len, x = dose, xlim = c(-1, 5), ylab = c(10, 20, data = ToothGrowth)