sigmoid {ggbump}R Documentation

sigmoid Creates a longer dataframe with coordinates for a smoothed line.

Description

sigmoid

Creates a longer dataframe with coordinates for a smoothed line.

Usage

sigmoid(x_from, x_to, y_from, y_to, smooth = 5, n = 100, direction = "x")

Arguments

x_from

start x value

x_to

end x value

y_from

start y value

y_to

end y values

smooth

smooth parameter. Higher means less smoothing

n

number of point that should be smoothed

direction

the character x or y depending on direction of smoothing

Value

a data frame


[Package ggbump version 0.1.0 Index]