Skip to content

Instantly share code, notes, and snippets.

@cimentadaj
Created August 16, 2016 22:35
Show Gist options
  • Save cimentadaj/1722bc8886a29bfe749fe8149cbbfb08 to your computer and use it in GitHub Desktop.
Save cimentadaj/1722bc8886a29bfe749fe8149cbbfb08 to your computer and use it in GitHub Desktop.
# Set the scientific numbering labels
o <- ggplot(housing, aes(x=region, y=Land.Price.Index)) + geom_boxplot(outlier.shape = NA) +
scale_y_continuous(labels = scientific); o
# change it to standard numbers
o + scale_y_continuous(labels = comma)
# change it to percentages
o + scale_y_continuous(labels = percent)
# change it to dollars
o + scale_y_continuous(labels = dollar)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment