plotFunc: plot a function

Description Usage Arguments Examples

Description

plot a function

Usage

1
2
3
plotFunc(func, from = NULL, to = NULL, n = 1500,
  xname = "<U+03C7>", xlab = xname, ylab = NULL, xlim = NULL,
  args = list(), color = "#005d8bCC", size = 0.75, ...)

Arguments

func

The name of a 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. Defaults to 1500.

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 blue

size

the size of the line. defaults to .75

...

Additional arguments to stat_function()

Examples

1
plotFunc(dnorm, from = -8 to = 8)

abnormally-distributed/Bayezilla documentation built on Oct. 31, 2019, 1:57 a.m.