allDigitsLabels: ggplot labels showing all digits

Description Usage Arguments Value Examples

View source: R/visualization.R

Description

Allows to adjust the numbers display on both axes for ggplot2 plots. The format is such that all digits are displayed.

Usage

1

Arguments

l

Labels

Value

Labels in the desired format

Examples

1
2
3
4
5
6
library(ggplot2)
df <- data.frame(x=rnorm(100)/1000, y=rnorm(100)/1000)
ggplot(df, aes(x=x, y=y)) +
  geom_point() +
  scale_x_continuous(labels=allDigitsLabels) +
  scale_y_continuous(labels=allDigitsLabels)

sfeuerriegel/ResearchGroupTools documentation built on May 29, 2019, 8:01 p.m.