Last data update: 2014.03.03

R: Creates histogram, optional rug/strip and density plots, and...
varPlotR Documentation

Creates histogram, optional rug/strip and density plots, and generates univariate descriptive statistics

Description

Represents important aspects of a variable/vector both visually (histogram, rug or strip, and density plots) and with descriptive statistics of varying detail

Usage

varPlot(TheVar,  VarName = '', IDs = NULL, AddPoints = 'Strip', 
        AddDensity = TRUE, Detail = 2)

Arguments

TheVar

A variable/vector to visualize

VarName

The variable name of TheVar as string. Default = ”

IDs

Rownames for interactive identification of data points, Default is NULL with no identification done

AddPoints

Strip (default), Rug, or None

AddDensity

TRUE (default) or FALSE to include density plot

Detail

1-3 of increasing detail for descriptives using varDescribe()

Value

Prints descriptive statistics table and creates graphic as side effect. Returns list with Indices, Rownames, and Values if identify is not NULL

Author(s)

John J. Curtin jjcurtin@wisc.edu

See Also

hist(), rug(), varStripPlot(), density(), varDescribe(), describe(), identify()

Examples

  
varPlot(Prestige$income, 'Income') #default use strip
varPlot(Prestige$income, AddPoints='RUG')
varPlot(Prestige$income, IDs=rownames(Prestige))

Results