Learn R Programming

SSDforR (version 1.1)

ABplotm: Multiple line plot

Description

This function should be used to create multiple line charts. This function must be used after the environment is set up using the plotnum() function.

Usage

ABplotm(behavior, phaseX, ABxlab, ABylab, ABmain)

Arguments

behavior
behavior variable
phaseX
phase variable
ABxlab
label for x-axis between quotation marks
ABylab
label for y-axis between quotation marks
ABmain
main title for graph between quotation marks

References

Go to www.analysis.com for more information.

Examples

Run this code
cry<-c(3, 4, 2, 5, 3, 4, NA, 2, 2, 3, 2, 1, 2, NA, 2, 2, 1, 2, 1, 0, 0, 0)
pcry<-c("A", "A", "A", "A", "A", "A", NA, "B", "B", "B", "B", "B", "B", NA, "B1", "B1", "B1", "B1", "B1", "B1", "B1", "B1")
yell<-c(3, 4, 2, 5, 5, 4, NA, 1, 2, 2, 2, 0, 0)
pyell<-c("A", "A", "A", "A", "A", "A", NA, "B", "B", "B", "B", "B", "B")
plotnum(2, 1)
ABplotm(cry,pcry,"week","amount","Crying")
ABplotm(yell,pyell,"week","amount","Yelling")

Run the code above in your browser using DataLab