“二进制运算符的非数字参数” Execute R Script,Microsoft Azure

问题描述 投票:0回答:1

我正在尝试使用Microsoft Azure机器学习工作室中的ggplot创建一个简单的图形。运行脚本时出现“二进制运算符的非数字参数”错误,代码如下:

dataset1

library(ggplot2)#加载ggplot2软件包

ggplot(数据=数据集1,aes(x =数据集1 $ DateInt,y =数据集1 $ Amount)+ geom_point())

错误没有意义,DateInt和Amount都是数字。 Azure可能导致该错误吗?

r azure ggplot2
1个回答
0
投票

问题可能是您为ggplot2使用了错误的语法。

ggplot(data = dataset1, aes(x = DateInt, y = Amount)) +
    geom_point()
© www.soinside.com 2019 - 2024. All rights reserved.