0
votes

I'm trying to create a simple graph using ggplot within Microsoft Azure machine learning studio. I'm getting a "non-numeric argument to binary operator" error when I run the script, my code is below:

dataset1 <- maml.mapInputPort(1) #Imports "dataset1" from Microsoft Azure

library(ggplot2) #Load ggplot2 package

ggplot(data = dataset1, aes(x = dataset1$DateInt, y = dataset1$Amount) + geom_point())

The error doesn't make sense, both DateInt and Amount are numeric. Is Azure possibly causing the error?

1

1 Answers

0
votes

The problem may be that you're using the wrong syntax for ggplot2.

ggplot(data = dataset1, aes(x = DateInt, y = Amount)) +
    geom_point()