Description Usage Arguments Value Source Examples
View source: R/visualization.R
Allows to adjust the numbers display on both axes for ggplot2 plots. The format is such that the expontent is nicely set.
1 |
l |
Labels |
Labels in the desired format
Brian Diggs https://groups.google.com/forum/#!topic/ggplot2/a_xhMoQyxZ4
1 2 3 4 5 6 | library(ggplot2)
df <- data.frame(x=rnorm(100), y=rnorm(100))
ggplot(df, aes(x=x, y=y)) +
geom_point() +
scale_x_continuous(labels=scientificLabels) +
scale_y_continuous(labels=scientificLabels)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.