Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

number_ticks

Number of ticks for ggplot2 plots


Description

Function for determining number of ticks on axis of ggplot2 plots.

Usage

number_ticks(n)

Arguments

n

integer giving the desired number of ticks on axis of ggplot2 plots. Non-integer values are rounded down.

Value

a vector of axis-label breaks

Details

Based on function pretty.


dampack

Decision-Analytic Modeling Package

v1.0.0
GPL-3
Authors
Fernando Alarid-Escudero [aut], Greg Knowlton [aut, cre], Caleb Easterly [aut], Eva Enns [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.