1
我想使用ggplot2软件包获得简单的绘图。 我的数据帧具有这种结构使用ggplot在x轴上绘制int的问题
str(nrmse21)
'data.frame': 30 obs. of 3 variables:
$ Missing.rate: int 5 5 5 5 5 10 10 10 10 10 ...
$ Dataset : Factor w/ 5 levels "hd","ir","mi",..: 1 2 3 4 5 1 2 3 4 5 ...
$ NRMSE : num 0.00643 0.00696 0.00716 0.00442 0.00533 ...
我试图建立我的情节与如下:
ggplot(data = nrmse21, aes(x= Missing.rate, y = NRMSE, colour = Dataset, shape =Dataset))
但没有点出,我唯一看到的是与X标签背景Missing.rate
和y标签NRMSE
Whatam我做错了吗?我怎样才能解决这个问题?