varPlot: Creates histogram, optional rug/strip and density plots, and...

Description Usage Arguments Value Author(s) See Also Examples

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

1
2
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

1
2
3
4
5
6
  
##NOT RUN
##data(BAC)
##varPlot(BAC$FPS, 'FPS') #default use strip
##varPlot(BAC$FPS, AddPoints='RUG')
##varPlot(BAC$FPS, IDs=rownames(BAC))

lmSupport documentation built on May 2, 2019, 2:14 p.m.

Related to varPlot in lmSupport...