xscale | R Documentation |
Change axis scale.
xscale(
x,
scale = c("none", "log", "log2", "log10", "scientific"),
type = c("scale", "inv", "format"),
format_digits = 1
)
scale |
axis scale. Allowed values are one of c("none", "log2", "log10", "sqrt", "percent", "dollar", "scientific"); e.g.: .scale="log2". |
format_digits |
Digits to keep while formatting |
inv |
Inverse value back to its original. |
format |
logical value. If TRUE, axis tick mark labels will be formatted when scale = "log2" or "log10". |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.