axis_scale | R Documentation |
Change axis scale.
xscale
: change x axis scale.
yscale
: change y axis scale.
xscale(.scale, .format = FALSE) yscale(.scale, .format = FALSE)
.scale |
axis scale. Allowed values are one of c("none", "log2", "log10", "sqrt", "percent", "dollar", "scientific"); e.g.: .scale="log2". |
.format |
ogical value. If TRUE, axis tick mark labels will be formatted when .scale = "log2" or "log10". |
# Basic scatter plots data(cars) p <- ggscatter(cars, x = "speed", y = "dist") p # Set log scale p + yscale("log2", .format = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.