全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 R语言论坛
4455 4
2016-07-22
gradel<-read.table("E:/R_test/gradel.txt",header=TRUE,sep=',',row.names="ssid",colClasses=c("character",
"character","character","numeric","character","numeric"))

执行完上述语句后,执行gradel 2.png


然后取First列(姓名)和Math列(数学成绩),First作为x轴,Math作为y轴

怎么用plot绘图显示姓名和数学成绩的关系?
如果想画直方图统计姓名和数学成绩怎么绘制直方图?








二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2016-7-22 13:35:22
You need to specify the plot type by Type=, if I recall correct. There should be an option.
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2016-7-22 13:46:55
suzhzh 发表于 2016-7-22 13:35
You need to specify the plot type by Type=, if I recall correct. There should be an option.
plot()type试了不行。横坐标要为四个成员姓名(First),纵坐标要为对应的成绩(Math),画出条形图,一直提示错误如下: 3.png
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2016-7-22 14:41:18
会的童鞋回复一下,谢谢
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2016-7-23 22:35:28
I think you can try HIST function. Of course, before you write the code, you should refer the syntax of such function. Recomment you use ?hist() in R, and it will give you how to use this function. THanks.
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群