Hello
I have created a few plots via the code below and want to arrange them into one screen via ggarrange. I need the plots to have a name to do so, but every method I've tried has provided the below error. Any assistance would be greatly appreciated!
Error in fortify()
:
! data
must be a data frame, or other object coercible by fortify()
, not an S3 object with class uneval.
Did you accidentally pass aes()
to the data
argument?
PLOT 1
outcome.summary.O.R.Longer %>%
filter(Variable%in% 'Response.Time') %>%
filter(Measure%in% 'mean') %>%
RT <- ggplot(aes(x = factor(DCD.Possible.MABC),
y = Value,
fill = factor(Pre.or.Post.Stimulus))) +
ggdist::stat_halfeye(
adjust = 0.5,
justification = -.2,
.width = 0,
point_colour = NA,
alpha = 0.5
) +
geom_boxplot(
width = .12,
outlier.color = NA,
alpha = 0.5)
PLOT 2
outcome.summary.O.R.Longer %>%
filter(Variable%in% 'Step.Length.SD') %>%
filter(Measure%in% 'mean') %>%
SLV <-ggplot(aes(x = factor(DCD.Possible.MABC),
y = Value,
fill = factor(Pre.or.Post.Stimulus))) +
ggdist::stat_halfeye(
adjust = 0.5,
justification = -.2,
.width = 0,
point_colour = NA,
alpha = 0.5
) +
geom_boxplot(
width = .12,
outlier.color = NA,
alpha = 0.5)
Arrange
ggarrange(RT, SLV ),
labels = c("", "", ""),
ncol = , nrow = )