Learn R Programming

Deducer (version 0.7-9)

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)

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

Value

a ggplot object

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