Is there a way to display labels as
0.01, 0.1, 1, 10, 100
instead of
0.01, 0.10, 1.00, 10.00, 100.00
i.e., truncating trailing zeros after the decimal?
x <- c(0.01, 0.1, 1, 10, 100)
scales::demo_log10(x)
scales::demo_log10(x, labels = scales::label_number())