Documentation and Guides for fxl

This section contains a mix of various posts/guides/demonstrations/etc. that are related to drawing Single-case Design (SCD) figures using R. Generally, this is done in the interest of open science and transparency to assist in the replication of research findings. Posts in this section aren't necessarily meant to be read in order, but it probably would help to do so, since earlier content will cover more fundamental details.

Intro to R and Graphing with the fxl Package

Shawn P. Gilroy, 5/25/2024

Preview of relevant figure

This post provides some introductory content to R, with information and tips for using R for building single-case design figures. Specifically, some basic instructions and practices are provided for working with variables, functions, data types, data structures, and some common programming conventions. It is recommended to review this content to understand the types of syntax used to design figures with the fxl R package.

Post 1 of 9

Reviewing the fxl Package: Drawing Figures in R for Single-case Design

Shawn P. Gilroy, 5/27/2024

Preview of relevant figure

This post is an initial introduction to the fxl R packages and the data and practices necessary to construct single-case design figures with the package. Specifically, the types of data structure and organization necessary to use the package are covered along with a brief prototypical example. Other strategies for supporting the re-usability of written code (e.g., for common/routine practices) are also covered.

Post 2 of 9

Drawing Reversal Designs in R: FCT + Schedule Thinning

Shawn P. Gilroy, 5/29/2024

Preview of relevant figure

Guidance is provided for designing a treatment evaluation (research or clinical) via a Reversal Design. Annotations and other features are shown to create a script with features commensurate to those you might see in published research.

Post 3 of 9

Drawing Functional Analyses in R: Recreation of Gilroy et al. (2019)

Shawn P. Gilroy, 6/2/2024

Preview of relevant figure

This short post shows how to create one of the most commonly-used figures included in SCD research--the analogue FA based on Iwata et al. (1984/1992).

Post 5 of 9

Compound Figures in R: Integrating Integrity and Behavior Rates in FA Figures

Shawn P. Gilroy, 6/2/2024

Preview of relevant figure

This post/guide shows how to create a figure that shows how to dynamically create figures to show information that otherwise would require two or more figures. This guide shows how to overlay a Bar Series over a Multielement chart to simultaneously communicate information about internal validity as well as the presence of some functional relationship.

Post 7 of 9

Concurrent Chains: Multi-Column Single-case Figures

Shawn P. Gilroy, 6/8/2024

Preview of relevant figure

This entry covers one of the more challenges issues with single-case visuals (e.g., complications from having many individuals with distinct patterns of data). This guide shows how to visualize competing selections, with changes in contexts (i.e., transitions in Phase ), with wrapping facets. Facet-specific styling is also modeled/demonstrated in this post.

Post 8 of 9

Visualizing Single-case Design Research Synthesis: SCARF Plots

Shawn P. Gilroy, 8/14/2024

Preview of relevant figure

This post focuses on exploring how single-case experimental design (SCED) researchers can use R to visually synthesize experimental outcomes using the Single Case Assessment and Review Framework (SCARF). Specifically, the fxl R package is used to take data coded using SCARF and to generate figures that would historically be prepared using complex Excel spreadsheets. This is not a tutorial on SCARF per se, but rather a demonstration of how fxl supports a spreadsheet-free alternative for users of SCARF.

Post 9 of 9