Scales up Utility_Behemoth to handle two factors on the x-axis, allowing for longitudinal plotting
Source:R/Utility_LongitudinalBehemoth.R
Utility_LongitudinalBehemoth.RdScales up Utility_Behemoth to handle two factors on the x-axis, allowing for longitudinal plotting
Usage
Utility_LongitudinalBehemoth(
data,
Variable,
GlobalFactor,
LocalFactor,
PositionDodgeWith = 0.8,
DotSize = 3,
DotSpacing = 2,
shape_palette,
fill_palette,
savePlot = FALSE,
outpath = NULL,
filename = NULL,
dpi = 600,
width = 6,
height = 3
)Arguments
- data
The data.frame for plotting
- Variable
The column name of data you want visualized
- GlobalFactor
The column name that you want to use as the primary factor on the x-axis
- LocalFactor
The column name that you want to use as the secondary factor on the x-axis
- DotSize
Default 3, sets the beeswarm dot size
- DotSpacing
Default 2, dictates area the dots sprawl across
- shape_palette
A list dictating the shapes the LocalFactor values should correspond to
- fill_palette
A list dictating the fills the LocalFactor values should correspond to
- savePlot
Default FALSE, saves a .png file to the designated location
- outpath
Default NULL, provide a file.path to storage location for savePlot
- filename
Default NULL sets filename to LongitudinalBehemoth, alternatively provide your own filename.
- dpi
Default 600, sets pixels for savePlot
- width
Default 6, sets width for savePlot
- height
Default 3, sets height for savePlot
- PositionDodgeWidth
Default 0.8, sets how far apart the beeswarm and boxplots are from those of the other LocalFactor