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

Share:

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
  
varPlot(Prestige$income, 'Income') #default use strip
varPlot(Prestige$income, AddPoints='RUG')
varPlot(Prestige$income, IDs=rownames(Prestige))

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.