mDensity: Interactive applet to explore density plots

Description Usage Arguments Details Value Author(s) Examples

Description

An applet which lets the user manipulate the bandwidth of a density plot and apply different transformations to examine how density plots reflect smoothed data.

Usage

1

Arguments

data

Numerical data to be used in the density plot. Only one variable of numerical data is allowed. If null, mDensity creates random data from the specified distribution.

Details

The user may specify the bandwidth (amount of smoothing) on density plot using the bandwidth slider. Transformations may be performed on the data using the transformation picker. These transformations include log, square root, rank, and inverse cosine. If data is null, three more options are available from the manipulate box. The distribution picker allows the user to choose the type of distribution for random data to be created from. The random seed slider picks the random seed. Number of points chooses the number of points to be generated as data.

Known bugs: Some transformations return NaNs and display an error in the console. The density plot does not plot those which are NaNs.

Value

A function that allows the user to explore density plots and transformations on data interactively.

Author(s)

Andrew Rich (andrew.joseph.rich@gmail.com) and Daniel Kaplan (kaplan@macalester.edu)

Examples

1
2
3
4
5
	if(require(manipulate)){
		data(trees)
		mDensity(trees$Girth)
		mDensity()
	}

mosaicManip documentation built on May 2, 2019, 5:48 p.m.