scale_format: Change Decimal Places in Axis Labels

View source: R/scale_format.R

scale_formatR Documentation

Change Decimal Places in Axis Labels

Description

This function change the number of decimal places on axis labels. This was taken from the following link: https://stackoverflow.com/questions/38722202/how-do-i-change-the-number-of-decimal-places-on-axis-labels-in-ggplot2

Usage

scale_format(x, format = "%.1f")

Arguments

x

Character to format

format

How to reformat the labels

Value

A reformatted character


sysilviakim/Kmisc documentation built on Jan. 28, 2023, 10:58 a.m.