fmt {figuRes2}R Documentation

fmt

Description

A function to control number of digits used in graphics.

Usage

fmt(digits = 2)

Arguments

digits

number of digits displayed

Details

This function is used within ggplot, e.g. (scale_y_continuous(labels=fmt(digits=3))) to control the number of digits presented. By default, axis labels will truncate zeros so that labels might read: 0, 2.5, 5, 7.5. Using this will result in labels: 0.0, 2.5, 5.0, 7.5.

Author(s)

Greg Cicconetti


[Package figuRes2 version 1.0.0 Index]