Learn R Programming

Deducer (version 0.9-1)

oneway.plot: One Way PLot

Description

plots a categorical variable against a series of continuous variables

Usage

oneway.plot(formula,data=NULL,alpha=.2,
		box=TRUE,points=TRUE,scale=FALSE)

Value

a ggplot object

Arguments

formula

A formula, the left hand side of which indicated the outcomes, and the right hand side of which contains the factor

data

A data.frame

alpha

alpha transparency level for the points.

box

prints boxplot

points

prints jitter plot

scale

standardize the variables prior to plotting

Examples

Run this code

oneway.plot(d(DriversKilled, drivers, front, rear,   kms, PetrolPrice)~law,as.data.frame(Seatbelts))

Run the code above in your browser using DataLab