I am trying to change the accuracy of the numbers in gt_plt_bar scale_type = "number" to an accuracy of .01. The documentation states: "then the numbers in the plotted column will be added as a bar-label and formatted according to scales::label_percent() or scales::label_number()"
label = if (scale_type == "number") {
scales::label_number(...)(.data$x)
} else if (scale_type == "percent") {
scales::label_percent(...)(.data$x)
},
Thanks to your answer I interpreted that it passes the arguments provided after scale_type = "number" to scales::label_number. The ... is a placeholder for additional arguments passed to gt_plt_bar().
I'll definitely be able to apply that in the future.