segmented.barchart: Segmented barchart

Description Usage Arguments Details Author(s) References Examples

Description

Produces a segmented barchart of the input variable, forcing it to be categorical if necessary

Usage

1

Arguments

x

A vector. If numerical, it is treated as categorical variable in the form of a factor

Details

Standard segmented barchart. Shaded areas are labeled with the levels they represent, and the percentage of cases with that level is labeled on the axis to the right.

Author(s)

Adam Petrie

References

Introduction to Regression and Modeling

Examples

1
2
3
4
5
6
  data(STUDENT)
	segmented.barchart(STUDENT$Family)  #Categorical variable
	data(TIPS)
	segmented.barchart(TIPS$PartySize)  #Numerical variable treated as categorical

	 

profpetrie/regclass documentation built on May 26, 2019, 8:33 a.m.