ABplotm | R Documentation |
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.
ABplotm(behavior, phaseX, ABxlab, ABylab, ABmain)
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 |
Charles Auerbach, PhD Wurzweiler School of Social Work Wendy Zeitlin, PhD Montclair State University
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.
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.