Error in `mutate()

I am having problems to make this representation of an Anova, as you can see they are two continuous variables (x= 1,2,3 and y= 1,2,3,4,5,6...9 anchored to a dataframe called spss. The error it gives me is the following:
Error in mutate():
! Problem while computing isanoutlier = ifelse(...).
:information_source: The error occurred in group 1: COD_EDAD = 1.
Caused by error in $.default:
! $ operator is invalid for atomic vectors

Also putting the code that i was utilized for try elaborate the graph:

ggstatsplot::ggbetweenstats(
data = SPSS,
x = COD_EDAD,
y = P4,
plot.type = "boxviolin",
notch = TRUE,
mean.ci = TRUE,
type = "P",
effsize.type = "partial_omega",)
k = 2, # cuántos decimales?
pairwise.comparisons = TRUE,
p.adjust.method = "bonferroni",
pairwise.display = "s",
outlier.tagging = TRUE,
outlier.coef = 1.5,
xlab = "rótulo del eje x",
ylab = "rótulo del eje y",
title = "Anova de un factor",
ggtheme = ggthemes::theme_economist(),
ggstatsplot.layer = FALSE,
package = "wesanderson",
palette = "Darjeeling1",
messages = FALSE
)

Thanks

Hello.
Thanks for providing code , but you could take further steps to make it more convenient for other forum users to help you.

Share some representative data that will enable your code to run and show the problematic behaviour.

You might use tools such as the library datapasta, or the base function dput() to share a portion of data in code form, i.e. that can be copied from forum and pasted to R session.

Reprex Guide

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.