You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello
I wanted to use scatr in R to get a scatterplot, but I get errors
Here is the code with # errors
data <- data.frame(Age = runif(100, 25, 90))
a <- 0
b <- sample(c(-1, 1), 1) * sample(c(0.2, 0.4, 0.6), 1)
data$Score <- a + b * data$Age + rnorm(100, sd = 15)
from syntax mode in jamovi
scatr::scat(
data = data,
x = Age,
y = Score)
Error in initialize(...) : object 'Age' not found
so specify variables with $
scatr::scat(
data = data,
x = data$Age,
y = data$Score)
Error in .subset2(x, i, exact = exact) : subscript out of bounds
############################
It works fine in Rj Editor in jamovi but not in R.
Appreciate your help
Best, Peter
The text was updated successfully, but these errors were encountered:
Hello
I wanted to use scatr in R to get a scatterplot, but I get errors
Here is the code with # errors
data <- data.frame(Age = runif(100, 25, 90))
a <- 0
b <- sample(c(-1, 1), 1) * sample(c(0.2, 0.4, 0.6), 1)
data$Score <- a + b * data$Age + rnorm(100, sd = 15)
from syntax mode in jamovi
scatr::scat(
data = data,
x = Age,
y = Score)
Error in initialize(...) : object 'Age' not found
so specify variables with $
scatr::scat(
data = data,
x = data$Age,
y = data$Score)
Error in .subset2(x, i, exact = exact) : subscript out of bounds
############################
It works fine in Rj Editor in jamovi but not in R.
Appreciate your help
Best, Peter
The text was updated successfully, but these errors were encountered: