The observed single-case data are plotted using plotly, a web-based interactive charting library.
graphly(design,data=read.table(file.choose(new=FALSE)),xlab="Measurement Times",
ylab="Scores",ylim=NULL,labels=c("A","B","A","B"))
Type of single-case design: "AB"
, "ABA"
, "ABAB"
, "CRD"
(completely randomized design), "RBD"
(randomized block design), "ATD"
(alternating treatments design), "MBD"
(multiple-baseline AB design) or "Custom"
(user specified design).
File in which the data can be found. Default: a window pops up in which the file can be selected.
Label x axis.
Label y axis.
Y axis limits in the form c(min, max)
.
Optional labels for treatment levels in the form c("A", "B")
.
When using the default data
argument, a window will pop up to ask in what file the data can be found. This text file containing the data should consist of two columns for single-case phase and alternation designs: the first with the condition labels and the second with the obtained scores. For multiple-baseline designs it should consist of these two columns for EACH unit. This way, each row represents one measurement occasion. It is important not to label the rows or columns.
Missing data should be indicated as NA
. For calculations, missing data are omitted.
Bulte, I., & Onghena, P. (2008). An R package for single-case randomization tests. Behavior Research Methods, 40, 467-478.
Bulte, I., & Onghena, P. (2009). Randomization tests for multiple baseline designs: An extension of the SCRT-R package. Behavior Research Methods, 41, 477-485.
Bulte, I., & Onghena, P. (2012). When the truth hits you between the eyes: A software tool for the visual analysis of single-case experimental data. Methodology, 8, 104-114.
graph
to simply plot raw single-case data.
graph.CL
to plot a measure of central tendency as a line parallel to the abscissa.
graph.VAR
to display variability information.
graph.TREND
to display a possible trend in the data.
# NOT RUN {
data(AB)
graphly(design = "AB", data = AB)
# }
Run the code above in your browser using DataLab