Learn R Programming

ggeffects (version 0.4.0)

pretty_range: 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

Run this code
# NOT RUN {
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)

# }

Run the code above in your browser using DataLab