Description Usage Arguments Examples
Get 10^x format expression for ggplot2 label
1 |
x |
numeric vector |
1 2 3 4 5 6 7 8 | ## Not run:
df <- data.frame(x=10^(-2:1),y=10^(-2:1))
ggplot(df, aes(x, y)) +
geom_point() +
scale_x_continuous(label=scientific_10) +
scale_y_continuous(label=scientific_10)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.