plotnum: Set graphic environment

View source: R/plotnum.R

plotnumR Documentation

Set graphic environment

Description

Used prior to ABplotm to set up graphic environment.

Usage

plotnum(nr, nc)

Arguments

nr

number of rows of graphs desired (e.g., 2)

nc

number of columns of graphs desired (e.g., 3)

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. p107

Go to www.ssdanalysis.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")

SSDforR documentation built on Nov. 24, 2023, 5:08 p.m.

Related to plotnum in SSDforR...