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.

ProgrammingData TypesData Structures
Post 1 of 8

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.

ProgrammingData StructuresFigure Design
Post 2 of 8

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.

Reversal DesignsArrowsTextPhase Changes
Post 3 of 8

Drawing Multiple Baseline Designs in R: Communication Training across Settings

Shawn P. Gilroy, 6/1/2024

Preview of relevant figure

Tutorial on designing a Multiple Baseline Design figure using R. Source code and documentation for recreating figures for Gilroy et al. (2021).

Multiple Baseline DesignPhase Change Lines
Post 4 of 8

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

Functional AnalysisMultielement Designs
Post 5 of 8

Drawing Hybrid/Blended Designs in R: Recreating Treatment Evaluation in Gilroy et al. (2019).

Shawn P. Gilroy, 6/2/2024

Preview of relevant figure

This tutorial shows a figure that can be necessary when there is a need to demonstrate experimental control but only two functions/targets are relevant. This figure also review conventions for visualizing schedule thinning/demand fading.

Reversal DesignsMultiple Baseline DesignsAim LinesBracketsHybrid Figures
Post 6 of 8

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.

Functional AnalysisBarsHybrid Figures
Post 7 of 8

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.

Concurrent ChainsFacetingHybrid Figures
Post 8 of 8