ggfunc: plot a function

Description Usage Arguments Examples

View source: R/ggfunc.R

Description

plot a function

Usage

1
2
3
ggfunc(func, x, from = NULL, to = NULL, n = 200,
  xname = "<U+03C7>", xlab = xname, ylab = NULL, xlim = NULL,
  args = list(), color = "red", size = 1.15, ...)

Arguments

func

The name of a function

x

a numeric vector to pass to the function

from

the lower limit of the x-axis

to

the upper limit of the x-axis

n

the number of x values to be evaluated

xname

character; argument of the function in func, the name of the x axis

xlab

label of the x-axis

ylab

label of the y-axis

xlim

restrict the range of the function

args

list of the additional argument of the function

color

the color of the line. defaults to "red"

size

the size of the line. defaults to 1.15

...

Additional arguments to stat_function()

Examples

1
ggfunc(dnorm(x), from = -15, to = 15)

abnormally-distributed/abdisttools documentation built on May 5, 2019, 7:07 a.m.