Learn R Programming

bscaling (version 1.0)

pvis: Code Presentation

Description

The function presents percentages of binary categories of a binary-coded variable and two-bar stacked bar chart of the categories.

Usage

pvis(x)

Arguments

x

a binary-coded data-frame object

Value

returns percentages of binary categories of a binary-coded variable and two-bar stacked bar chart of the categories.

Details

The function is partly designed for the data frame returned by the function sc01 as a means of analytical result presentation. All instructions on R base function sum apply.

Examples

Run this code
# NOT RUN {
bvar = data.frame(bc = c(1,1,0,0,1,1))
pvis(bvar) 
# }

Run the code above in your browser using DataLab