densiplot: Plot of Denisty Estimation

Description Usage Arguments Value Author(s) Examples

View source: R/densiplot.R

Description

This function calls the function densi(x,d=NULL,h=NULL, method="naive") and creates a density plot based on the specified method.

Usage

1
densiplot(x,n=500, method="naive", from= min(x)-(sd(x)/3), to=max(x)+(sd(x)/3))

Arguments

x

numeric value

n

number of points to be used for plotting the density function.

method

the method for density estimation. It can be "naive" or "kernel".

from

specifies from which point the method should begin.

to

specifies where the plot should stop.

Value

A density plot based on the specified method.

Author(s)

Katrine Eriksen and Katrine Bach
Department of mathematics and computer science (IMADA)
University of Southern Denmark
kater13@student.sdu.dk and kabac13@student.sdu.dk

Examples

1
densiplot(faithful$eruptions)

Katrinebch/ExamST516 documentation built on May 7, 2019, 12:29 p.m.