ABplotm {SSDforR} | R Documentation |
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 |
Author(s)
Charles Auerbach, PhD Wurzweiler School of Social Work Wendy Zeitlin, PhD Montclair State University
References
Auerbach, Charles, and Zeitlin Wendy. SSD for R: An R Package for Analyzing Single-Subject Data. Oxford University Press, 2014. p108, p129
Go to www.analysis.com for more information.
Examples
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")
[Package SSDforR version 1.5.34 Index]