R: Create a pretty sequence over a range of a vector

pretty_range {ggeffects} | R Documentation

## Create a pretty sequence over a range of a vector

### Description

Creates an evenly spaced, pretty sequence of numbers for a range of a vector.

### Usage

    pretty_range(x)

### Arguments

`x` | A numeric vector.

### Value

A numeric vector with a range corresponding to the minimum and maximum values of `x`.

### Examples

    library(sjmisc)
    data(efc)

    x <- std(efc$c12hour)
    x
    # pretty range for vectors with decimal points
    pretty_range(x)

    # pretty range for large range
    pretty_range(1:1000)

[Package ggeffects version 0.4.0 Index]