powered by
fold change calculation which returns a extensible tibble
stat_fc( df, y, x, method = "mean", .by = NULL, rev_div = FALSE, digits = 2, fc_fmt = "short", suffix = "x" )
fold change result tibble
tibble
value
sample test group
'mean'|'median'|'geom_mean', the summary method
'mean'|'median'|'geom_mean'
super-group
reverse division
fold change digits
fold change format, one of short, signif, round
suffix of fold change, x as default
x
stat_fc(mini_diamond, y = price, x = cut, .by = clarity)
Run the code above in your browser using DataLab