Small n Logo

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
Published: May 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.

Programming
Data Types
Data Structures
Read
Reviewing the fxl Package: Drawing Figures in R for Single-case Design
Published: May 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.

Programming
Data Structures
Figure Design
Read
Drawing Reversal Designs in R: FCT + Schedule Thinning
Published: May 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 Designs
Arrows
Text
Phase Changes
Read
Drawing Multiple Baseline Designs in R: Communication Training across Settings
Published: June 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 Design
Phase Change Lines
Read
Drawing Functional Analyses in R: Recreation of Gilroy et al. (2019)
Published: June 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 Analysis
Multielement Designs
Read
Drawing Hybrid/Blended Designs in R: Recreating Treatment Evaluation in Gilroy et al. (2019).
Published: June 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 Designs
Multiple Baseline Designs
Aim Lines
Brackets
Hybrid Figures
Read
Visualizing Compound Figures in R: Integrating Integrity and Behavior Rates in FA Figures
Published: June 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 Analysis
Bars
Hybrid Figures
Read
Visualizing Concurrent Chains in R: Multi-Column Single-case Figures
Published: June 8, 2024
Preview of relevant figure

This entry covers one of the more challenging issues with designing single-case visuals: having many individuals with distinct ranges and patterns in 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 Chains
Faceting
Hybrid Figures
Read
Visualizing Single-case Design Research Synthesis: SCARF Plots
Published: August 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.

Research Synthesis
Single-case Data
Systematic Review
Read