Title: | 'fxl' Single Case Design Charting Package |
---|---|
Description: | The 'fxl' Charting package is used to prepare and design single case design figures that are typically prepared in spreadsheet software. With 'fxl', there is no need to leave the R environment to prepare these works and many of the more unique conventions in single case experimental designs can be performed without the need for physically constructing features of plots (e.g., drawing annotations across plots). Support is provided for various different plotting arrangements (e.g., multiple baseline), annotations (e.g., brackets, arrows), and output formats (e.g., svg, rasters). |
Authors: | Shawn Gilroy [aut, cre, cph] |
Maintainer: | Shawn Gilroy <[email protected]> |
License: | GPL (>=3) |
Version: | 1.7.1 |
Built: | 2024-10-31 02:48:49 UTC |
Source: | https://github.com/miyamot0/fxl |
assert_input_type
assert_input_type(object, types = character(0), tag = "")
assert_input_type(object, types = character(0), tag = "")
object |
some type of object |
types |
list of object types acceptable |
tag |
var to reference in error message |
no return value, run for side effects
Twitter chart challenge data 1
Challenge1Data
Challenge1Data
A data frame with 226 rows and 11 variables:
Extracted study ID
Extracted study figure number
Extracted study panel number
Extracted study case name
Extracted study number
Session
Extracted study outcome name
Direction of trend
Outcome measure
Extracted study condition
Extracted study number
Twitter chart challenge data 2
Challenge2Data
Challenge2Data
A data frame with 113 rows and 5 variables:
Participant name
Session number
Condition name
Incorrect word sequences
Correct word sounds
Twitter chart challenge data 4
Challenge4Data
Challenge4Data
A data frame with 189 rows and 11 variables:
Session number
Participant name
Phase name
Fluency of number writing
Fluency of dot number skills
Fluency of dot number skills on all sets
Number writing fluency on all sets
Number writing accuracy
Dot number accuracy
Dot number accuracy on all sets
Number writing accuracy on all sets
Pulled from the TeachingDemos package (GPLv2+ Licensed)
cnvrt_coords(x, y = NULL, input = c("usr", "plt", "fig", "dev", "tdev"))
cnvrt_coords(x, y = NULL, input = c("usr", "plt", "fig", "dev", "tdev"))
x |
abscissa |
y |
ordnate |
input |
device |
Slightly hacked/trimmed
Transformation of coordinates from local plot to figure space for phase changes
Shawn Gilroy <[email protected]>, Greg Snow <[email protected]>
drawing function
draw_arrows(core_frame, current_layer, facet_name)
draw_arrows(core_frame, current_layer, facet_name)
core_frame |
fxl object |
current_layer |
layer to be drawn |
facet_name |
name of facet |
nothing, run for side effects
Shawn Gilroy <[email protected]>
Draw bars, but on a secondary axis
draw_bar_support(core_frame, current_layer, facet_name, max_y)
draw_bar_support(core_frame, current_layer, facet_name, max_y)
core_frame |
fxl object |
current_layer |
layer to be drawn |
facet_name |
name of facet |
max_y |
top of y axis to match |
nothing, run for side effects
Shawn Gilroy <[email protected]>
drawing function
draw_brackets(core_frame, current_layer, facet_name)
draw_brackets(core_frame, current_layer, facet_name)
core_frame |
fxl object |
current_layer |
layer to be drawn |
facet_name |
name of facet |
nothing, run for side effects
Shawn Gilroy <[email protected]>
draw_cumsum_lines
draw_cumsum_lines(core_frame, current_layer, facet_name)
draw_cumsum_lines(core_frame, current_layer, facet_name)
core_frame |
fxl object |
current_layer |
layer to be drawn |
facet_name |
name of facet |
nothing, run for side effects
Shawn Gilroy <[email protected]>
draw_cumsum_points
draw_cumsum_points(core_frame, current_layer, facet_name)
draw_cumsum_points(core_frame, current_layer, facet_name)
core_frame |
fxl object |
current_layer |
layer to be drawn |
facet_name |
name of facet |
nothing, run for side effects
Shawn Gilroy <[email protected]>
draw_guide_line
draw_guide_line(core_frame, current_layer, facet_name)
draw_guide_line(core_frame, current_layer, facet_name)
core_frame |
fxl object |
current_layer |
layer to be drawn |
facet_name |
name of facet |
nothing, run for side effects
Shawn Gilroy <[email protected]>
drawing function
draw_images(core_frame, current_layer, facet_name, zero_axis = FALSE)
draw_images(core_frame, current_layer, facet_name, zero_axis = FALSE)
core_frame |
fxl object |
current_layer |
layer to be drawn |
facet_name |
name of facet |
zero_axis |
filter out all but zeros |
nothing, run for side effects
Shawn Gilroy <[email protected]>
drawing function
draw_label_facet(core_frame, current_layer, facet_name)
draw_label_facet(core_frame, current_layer, facet_name)
core_frame |
fxl object |
current_layer |
layer to be drawn |
facet_name |
name of facet |
nothing, run for side effects
Shawn Gilroy <[email protected]>
drawing function
draw_label_phase(core_frame, current_layer, facet_name)
draw_label_phase(core_frame, current_layer, facet_name)
core_frame |
fxl object |
current_layer |
layer to be drawn |
facet_name |
name of facet |
nothing, run for side effects
Shawn Gilroy <[email protected]>
drawing function
draw_legend(core_frame)
draw_legend(core_frame)
core_frame |
fxl object |
nothing, run for side effects
Shawn Gilroy <[email protected]>
drawing function
draw_lines(core_frame, current_layer, facet_name)
draw_lines(core_frame, current_layer, facet_name)
core_frame |
fxl object |
current_layer |
layer to be drawn |
facet_name |
name of facet |
nothing, run for side effects
Shawn Gilroy <[email protected]>
drawing function
draw_points(core_frame, current_layer, facet_name, zero_axis = FALSE)
draw_points(core_frame, current_layer, facet_name, zero_axis = FALSE)
core_frame |
fxl object |
current_layer |
layer to be drawn |
facet_name |
name of facet |
zero_axis |
filter out all but zeros |
nothing, run for side effects
Shawn Gilroy <[email protected]>
drawing function
draw_rect(core_frame, current_layer, facet_name, zero_axis = FALSE)
draw_rect(core_frame, current_layer, facet_name, zero_axis = FALSE)
core_frame |
fxl object |
current_layer |
layer to be drawn |
facet_name |
name of facet |
zero_axis |
filter out all but zeros |
nothing, run for side effects
Shawn Gilroy <[email protected]>
drawing function
draw_scr_criterion(core_frame, current_layer, facet_name)
draw_scr_criterion(core_frame, current_layer, facet_name)
core_frame |
fxl object |
current_layer |
layer to be drawn |
facet_name |
name of facet |
nothing, run for side effects
Shawn Gilroy <[email protected]>
drawing function
draw_scr_plines(core_frame, current_layer, facet_name)
draw_scr_plines(core_frame, current_layer, facet_name)
core_frame |
fxl object |
current_layer |
layer to be drawn |
facet_name |
name of facet |
nothing, run for side effects
Shawn Gilroy <[email protected]>
Treatment data from Koffarnus et al. (2011)
GelinoEtAl2022
GelinoEtAl2022
A data frame with 9 rows and 1 variables:
Baseline vs. policy condition
Time of study
Slope change dummy code
Predicted value from model
Count for site 1
Count for site 2
Count for site 3
Count for site 4
Facet/subplot number
<doi:https://doi.org/10.1002/jaba.967>
This is data either extracted or included (with permission) to assist with illustrating and replicating the functionality of the package. Specifically, this data is used to illustrate conventions regarding a multiple probe design and how that may be constructed in this package.
Gilroyetal2015
Gilroyetal2015
A data frame with 40 rows and 6 variables:
Participant name
Session number
Condition name
Responding rates
Phase number
Offset for phase line
<doi:https://doi.org/10.1016/j.rasd.2015.04.004>
Data from this study (provided with permission) is used to illustrate how findings from a functional analysis can be drawn using the package. Generally, its the same type of functionality required in an alternating treatment design approach.
Gilroyetal2019
Gilroyetal2019
A data frame with 15 rows and 9 variables:
Session number
Rates of self-injury
Rates of aggression
Rates of disruptive behavior
Rates of prompting
Rates of compliance
Duration of reinforcement
Rates of combined target behavior
Functional analysis condition
<doi:https://doi.org/10.1080/17518423.2019.1646342>
This is data either extracted or included (with permission) to assist with illustrating and replicating the functionality of the package. Specifically, this data is used to illustrate conventions regarding combined design elements that include multiple baseline and reversal design elements.
Gilroyetal2019Tx
Gilroyetal2019Tx
A data frame with 86 rows and 8 variables:
Participant name
Session number
Functional analysis condition
Rates of combined target behavior
Rates for communication response for function 1
Rates for communication response for function 2
Sequenced phase number
Offset of phase line
<doi:https://doi.org/10.1080/17518423.2019.1646342>
Treatment data from Gilroy et al. (2021)
Gilroyetal2021
Gilroyetal2021
A data frame with 69 rows and 7 variables:
Participant name
Session number
Functional analysis condition
Rates of responding
Reinforcer deliveries
Sequenced phase number
Offset of phase line
<doi:https://doi.org/10.1002/jaba.826>
isValidAestheticMapping
isValidAestheticMapping(object = NULL, name = NULL)
isValidAestheticMapping(object = NULL, name = NULL)
object |
dataframe (hopefully) |
name |
name for object |
no return value, run for side effects
isValidAXSCharacter
isValidAXSCharacter(object = NULL, name = NULL)
isValidAXSCharacter(object = NULL, name = NULL)
object |
some type of object |
name |
parameter name |
no return value, run for side effects
isValidCharacterVector
isValidCharacterVector(object = NULL, length = -1, name = NULL)
isValidCharacterVector(object = NULL, length = -1, name = NULL)
object |
some type of object |
length |
expected length |
name |
parameter name |
no return value, run for side effects
isValidDataFrame
isValidDataFrame(object = NULL, name = NULL)
isValidDataFrame(object = NULL, name = NULL)
object |
dataframe (hopefully) |
name |
name for object |
no return value, run for side effects
isValidLogicalVector
isValidLogicalVector(object = NULL, length = -1, name = NULL)
isValidLogicalVector(object = NULL, length = -1, name = NULL)
object |
some type of object |
length |
expected length |
name |
parameter name |
no return value, run for side effects
isValidNumericVector
isValidNumericVector(object = NULL, length = -1, name = NULL)
isValidNumericVector(object = NULL, length = -1, name = NULL)
object |
some type of object |
length |
expected length |
name |
parameter name |
no return value, run for side effects
Treatment data from Koffarnus et al. (2011)
KoffarnusEtAl2011
KoffarnusEtAl2011
A data frame with 14979 rows and 3 variables:
Session/day number
Participant ID on the Y axis
Status for treatment
<doi:https://doi.org/10.1093/alcalc/agr057>
Treatment data from Lozy et al. (2020)
LozyEtAl2020
LozyEtAl2020
A data frame with 91 rows and 5 variables:
Session number
Participant name
Kinesthetic movement choices
Traditional drill choices
Sequenced phase number
<doi:https://doi.org/10.1002/jaba.677>
Override the final call to print the fxl object. catches the obj and prints out layers in the sequence laid out by the user
## S3 method for class 'fxl' print(x, ...)
## S3 method for class 'fxl' print(x, ...)
x |
fxl object |
... |
inherits from generic |
no return, executed for side effects
Shawn Gilroy <[email protected]>
Override the final call to print the fxl object. catches the obj and prints out layers in the sequence laid out by the user
## S3 method for class 'fxlsemilog' print(x, ...)
## S3 method for class 'fxlsemilog' print(x, ...)
x |
fxlsemilog object |
... |
inherits from generic |
no return, executed for side effects
Shawn Gilroy <[email protected]>
Add a layer with arrows to direct attention on the plot
scr_anno_arrows( core_frame, arrows = NULL, facet = NULL, color = "black", length = 0.25, angle = 30, code = 2, lwd = 1, lty = 1 )
scr_anno_arrows( core_frame, arrows = NULL, facet = NULL, color = "black", length = 0.25, angle = 30, code = 2, lwd = 1, lty = 1 )
core_frame |
fxl class |
arrows |
list of keyed entries to be drawn on respective facets |
facet |
the facet which will be drawn upon |
color |
from base |
length |
from base |
angle |
from base |
code |
from base |
lwd |
from base |
lty |
from base |
Generally useful for avoiding a legend
a layer to the core plotting object
Shawn Gilroy <[email protected]>
Add a layer with brackets on plot
scr_anno_brackets( core_frame, brackets = NULL, facet = NULL, color = "black", length = 0.25, angle = 30, code = 2, lwd = 1, lty = 1 )
scr_anno_brackets( core_frame, brackets = NULL, facet = NULL, color = "black", length = 0.25, angle = 30, code = 2, lwd = 1, lty = 1 )
core_frame |
fxl class |
brackets |
list of keyed entries to be drawn on respective facets |
facet |
the facet which will be drawn upon |
color |
from base |
length |
from base |
angle |
from base |
code |
from base |
lwd |
from base |
lty |
from base |
a layer to the core plotting object
Shawn Gilroy <[email protected]>
This is an annotation illustrating an aim/reduction line
scr_anno_guide_line( core_frame, coords, facet = NA, color = "black", lty = 1, lwd = 1 )
scr_anno_guide_line( core_frame, coords, facet = NA, color = "black", lty = 1, lwd = 1 )
core_frame |
fxl object |
coords |
start and finish coords for aim line |
facet |
panel to draw upon |
color |
from base |
lty |
line type |
lwd |
line width |
a layer to the core plotting object
Shawn Gilroy <[email protected]>
scr_anno_rect
scr_anno_rect(core_frame, rects = NULL, color = "black", fill = "black")
scr_anno_rect(core_frame, rects = NULL, color = "black", fill = "black")
core_frame |
fxl object |
rects |
list of keyed entries to be drawn on respective facets |
color |
from base |
fill |
from base |
a layer to the core plotting object
Shawn Gilroy <[email protected]>
Adds a supplemental bar to the figure, if relevant to the data
scr_bar_support( core_frame, color = rgb(0.8, 0.8, 0.8, alpha = 0.25), alpha = 1, guide_line = NULL, guide_line_type = 1, guide_line_size = 1, guide_line_color = "black", mapping = NULL, label = "", styler = NA, width = 0.8 )
scr_bar_support( core_frame, color = rgb(0.8, 0.8, 0.8, alpha = 0.25), alpha = 1, guide_line = NULL, guide_line_type = 1, guide_line_size = 1, guide_line_color = "black", mapping = NULL, label = "", styler = NA, width = 0.8 )
core_frame |
fxl object |
color |
from base |
alpha |
from base |
guide_line |
(optional) aim line for bars |
guide_line_type |
(optional) aim line type for bars |
guide_line_size |
(optional) aim line size for bars |
guide_line_color |
(optional) aim line color for bars |
mapping |
(optional) if overriding draw (i.e., different response) |
label |
description for bar |
styler |
a lambda function that returns dynamic styling parameters |
width |
width of bar |
a layer to the core plotting object
scr_criterion_lines
scr_criterion_lines( core_frame, lty = 1, color = "black", size = 1, lines = NULL )
scr_criterion_lines( core_frame, lty = 1, color = "black", size = 1, lines = NULL )
core_frame |
fxl object |
lty |
from base |
color |
from base |
size |
from base |
lines |
lines to draw |
a layer to the core plotting object
Shawn Gilroy <[email protected]>
Draw lines, but as a cumulative and rolling sum
scr_cumsum_lines(core_frame, lty = 1, color = "black", size = 1, mapping)
scr_cumsum_lines(core_frame, lty = 1, color = "black", size = 1, mapping)
core_frame |
fxl object |
lty |
from base |
color |
from base |
size |
from base |
mapping |
from base |
a layer to the core plotting object
Shawn Gilroy <[email protected]>
scr_cumsum_points
scr_cumsum_points( core_frame, pch = 21, color = "black", fill = "black", cex = 1, mapping )
scr_cumsum_points( core_frame, pch = 21, color = "black", fill = "black", cex = 1, mapping )
core_frame |
fxl object |
pch |
from base |
color |
from base |
fill |
from base |
cex |
from base |
mapping |
(optional) if overriding draw (i.e., different response) |
a layer to the core plotting object
Shawn Gilroy <[email protected]>
scr_images
scr_images(core_frame, image, cex = 1, mapping)
scr_images(core_frame, image, cex = 1, mapping)
core_frame |
fxl object |
image |
should be RGML image |
cex |
from base |
mapping |
(optional) if overriding draw (i.e., different response) |
a layer to the core plotting object
Shawn Gilroy <[email protected]>
scr_label_facet
scr_label_facet( core_frame, color = "black", cex = 1, adj = 0.5, face = 1, x = NULL, y = NULL, labels = NULL )
scr_label_facet( core_frame, color = "black", cex = 1, adj = 0.5, face = 1, x = NULL, y = NULL, labels = NULL )
core_frame |
fxl object |
color |
from base |
cex |
from base |
adj |
from base |
face |
like 'font' from base |
x |
global x position for labels |
y |
global y position for labels |
labels |
as stated |
nothing, run for side effects
Shawn Gilroy <[email protected]>
labels to be drawn on plots (typically for phases/conditions, but not necessarily)
scr_label_phase( core_frame, color = "black", cex = 1, adj = 0.5, face = 1, x = NULL, y = NULL, facet = NULL, labels = NULL )
scr_label_phase( core_frame, color = "black", cex = 1, adj = 0.5, face = 1, x = NULL, y = NULL, facet = NULL, labels = NULL )
core_frame |
fxl object |
color |
from base |
cex |
from base |
adj |
from base |
face |
like 'font' from base |
x |
location |
y |
location |
facet |
facet of interest |
labels |
as stated |
nothing, run for side effects
Shawn Gilroy <[email protected]>
Information for drawing legend onto plots
scr_legend( core_frame, panel = NA, legend, bg = NULL, col = NULL, pt_bg = NULL, lty, pch, box_lty = 0, adj = c(0, 0.5), bty = "n", cex = 1, horiz = FALSE, position = "topright", pt_cex = 1, text_col = "black", border = "black" )
scr_legend( core_frame, panel = NA, legend, bg = NULL, col = NULL, pt_bg = NULL, lty, pch, box_lty = 0, adj = c(0, 0.5), bty = "n", cex = 1, horiz = FALSE, position = "topright", pt_cex = 1, text_col = "black", border = "black" )
core_frame |
fxl object |
panel |
facet to be drawn on |
legend |
from base |
bg |
from base |
col |
from base |
pt_bg |
color, for point |
lty |
from base |
pch |
from base |
box_lty |
from base |
adj |
alignment |
bty |
from base |
cex |
from base |
horiz |
from base |
position |
from base |
pt_cex |
from base |
text_col |
from base |
border |
border status (from base) |
nothing, run for side effects
Shawn Gilroy <[email protected]>
scr_lines
scr_lines(core_frame, lty = 1, color = "black", size = 1, mapping)
scr_lines(core_frame, lty = 1, color = "black", size = 1, mapping)
core_frame |
fxl object |
lty |
from base |
color |
from base |
size |
from base |
mapping |
from base |
a layer to the core plotting object
Shawn Gilroy <[email protected]>
scr_plines
scr_plines(core_frame, lines = NULL, lwd = 1, lty = 1, col = "black")
scr_plines(core_frame, lines = NULL, lwd = 1, lty = 1, col = "black")
core_frame |
fxl object |
lines |
phase lines to be drawn |
lwd |
from base |
lty |
from base |
col |
from base |
a layer to the core plotting object
Shawn Gilroy <[email protected]>
scr_plines_mbd
scr_plines_mbd(core_frame, lty = 1, lines = NULL)
scr_plines_mbd(core_frame, lty = 1, lines = NULL)
core_frame |
fxl object |
lty |
phase lines types |
lines |
phase lines to be drawn |
a layer to the core plotting object
Shawn Gilroy <[email protected]>
Core object for establishing fxl object and layers
scr_plot( data, aesthetics = NULL, mai = c(0.375, 0.375, 0.25, 0.25), omi = c(0.25, 0.25, 0.25, 0.25), xaxs = "i", yaxs = "i", ncol = 1, family = "sans", bty = "l", layout = NA, layout_h = NA, layout_v = NA, semi_color_major_y = "blue", semi_color_midpoint_y = "blue", semi_color_minor_y = "lightgray", semi_color_major_x = "lightgray", semilog = FALSE )
scr_plot( data, aesthetics = NULL, mai = c(0.375, 0.375, 0.25, 0.25), omi = c(0.25, 0.25, 0.25, 0.25), xaxs = "i", yaxs = "i", ncol = 1, family = "sans", bty = "l", layout = NA, layout_h = NA, layout_v = NA, semi_color_major_y = "blue", semi_color_midpoint_y = "blue", semi_color_minor_y = "lightgray", semi_color_major_x = "lightgray", semilog = FALSE )
data |
submitted data (not opinionated on naming) |
aesthetics |
references for data in frame |
mai |
margins in inches |
omi |
outer margins in inches |
xaxs |
x axis formatting, relative to hanging space |
yaxs |
y axis formatting, relative to hanging space |
ncol |
TODO |
family |
font family |
bty |
TODO |
layout |
TODO |
layout_h |
TODO |
layout_v |
TODO |
semi_color_major_y |
TODO |
semi_color_midpoint_y |
TODO |
semi_color_minor_y |
TODO |
semi_color_major_x |
TODO |
semilog |
determine if this is a semilog type of plot |
class of 'fxl' that contains necessary plotting elements
Shawn Gilroy <[email protected]>
scr_points
scr_points( core_frame, pch = 21, color = "black", fill = "black", cex = 1, styler = NA, data = NA, mapping )
scr_points( core_frame, pch = 21, color = "black", fill = "black", cex = 1, styler = NA, data = NA, mapping )
core_frame |
fxl object |
pch |
from base |
color |
from base |
fill |
from base |
cex |
from base |
styler |
a lambda function that returns dynamic styling parameters |
data |
(optional) if overriding data |
mapping |
(optional) if overriding draw (i.e., different response) |
a layer to the core plotting object
Shawn Gilroy <[email protected]>
Function for outputting fxl object at preset size (certain journal are opinionated on size, format, and density)
scr_save( core_frame, units = "in", name = "test.tiff", format = "tiff", width = 8, height = 4, res = 600 )
scr_save( core_frame, units = "in", name = "test.tiff", format = "tiff", width = 8, height = 4, res = 600 )
core_frame |
fxl object |
units |
from base |
name |
from base |
format |
type of image to save in |
width |
from base |
height |
from base |
res |
from base |
no return, executed for side effects
Shawn Gilroy <[email protected]>
Override the title
scr_title(core_frame, var, color = "black", cex = 1, adj = 0.5, face = 1)
scr_title(core_frame, var, color = "black", cex = 1, adj = 0.5, face = 1)
core_frame |
fxl object |
var |
string |
color |
from base |
cex |
from base |
adj |
from base |
face |
like 'font' from base |
nothing, run for side effects
Shawn Gilroy <[email protected]>
Override the x axis label
scr_xlabel( core_frame, var, color = "black", cex = 1, adj = 0.5, face = 1, line = 0 )
scr_xlabel( core_frame, var, color = "black", cex = 1, adj = 0.5, face = 1, line = 0 )
core_frame |
fxl object |
var |
string |
color |
from base |
cex |
from base |
adj |
from base |
face |
like 'font' from base |
line |
line width |
nothing, run for side effects
Shawn Gilroy <[email protected]>
Override the x axis limits
scr_xoverride( core_frame, var, xdelta = 1, xticks = NULL, xdraws = NULL, xrotation = NULL, xtickscex = 1, xlabeloffset = NULL, xtickslabs = NULL, xticksadj = 1 )
scr_xoverride( core_frame, var, xdelta = 1, xticks = NULL, xdraws = NULL, xrotation = NULL, xtickscex = 1, xlabeloffset = NULL, xtickslabs = NULL, xticksadj = 1 )
core_frame |
fxl object |
var |
string for title |
xdelta |
skips between ticks (can override) |
xticks |
specify ticks, vector or named list |
xdraws |
which x axes to draw |
xrotation |
degree to rotate positioned labels |
xtickscex |
expansion factor for labels |
xlabeloffset |
offset to push labels downward |
xtickslabs |
labels for x axis |
xticksadj |
alignment for custom labels |
nothing, run for side effects
Shawn Gilroy <[email protected]>
Override the y axis label
scr_ylabel( core_frame, var, color = "black", cex = 1, adj = 0.5, face = 1, line = 0 )
scr_ylabel( core_frame, var, color = "black", cex = 1, adj = 0.5, face = 1, line = 0 )
core_frame |
fxl object |
var |
string |
color |
from base |
cex |
from base |
adj |
from base |
face |
like 'font' from base |
line |
line width |
nothing, run for side effects
Shawn Gilroy <[email protected]>
Override the y axis (or axes) limits
scr_yoverride( core_frame, var, ydelta = 1, yticks = NULL, ydraws = NULL, ytickslabs = NULL )
scr_yoverride( core_frame, var, ydelta = 1, yticks = NULL, ydraws = NULL, ytickslabs = NULL )
core_frame |
fxl object |
var |
from base |
ydelta |
skips between ticks (can override) |
yticks |
tick values (numerical) |
ydraws |
specify axes manual |
ytickslabs |
tick labels |
nothing, run for side effects
Shawn Gilroy <[email protected]>
Plotting data for Hypothetical Academic MTSS
SimulatedAcademicFluency
SimulatedAcademicFluency
A data frame with 168 rows and 7 variables:
Rates of change
Multiplier for model level
Individual id
Modeled baseline start
Jitter offset
Prediction from model
Residual error
This helper function maps out relationships to be parsed later on
var_map(...)
var_map(...)
... |
map expressed relationships out |
list of exprs to map variables to plotting methods