关键词不能为空

当前您在: 主页 > 高中公式大全 >

轮廓图和雷达图

作者:高考题库网
来源:https://www.bjmy2z.cn/gaokao
2020-12-06 00:36
tags:轮廓

汉朝历代帝王列表-关于中秋节的笑话

2020年12月6日发(作者:喻传鉴)
第4章 轮廓图和雷达图

作业4.1:
下表列举某年级任取12名学生 的5门主课的期末考试成绩,试绘制学生序号为1、2、11、
12的轮廓图和雷达图。其数据如下表1 :
表1 学生学习成绩
序号 政治 英文 外语 数学 物理 序号 政治 英文 外语 数学 物理
1
2
3
4
5
6
99
99
100
93
100
90
94
88
98
88
91
78
93
96
81
88
72
82
100
99
96
99
96
75
100
97
100
96
78
97

答:
1. 读入数据;
SAS程序:
Data scores;
input number subject$$ score@@;
cards;
1 politics 99 1 chinese 94 1 english 93 1 maths 100 1 physics 100
2 politics 99 2 chinese 88 2 english 96 2 maths 99 2 physics 97
11 politics 76 11 chinese 72 11 english 43 11 maths 67 11 physics 78
12 politics 85 12 chinese 75 12 english 50 12 maths 34 12 physics 37
;
run;

7
8
9
10
11
12
75
93
87
95
76
85
73
84
73
82
72
75
88
83
60
90
43
50
97
68
76
62
67
34
89
8
84
39
78
37
语句解释:
“input number subject$$ score@@;”中“$$”指变量“subject”是字符变量;

2. 画雷达图:
SAS程序:
Proc gradar data= scores;
chart subjectfreq=score overlay=number
starcircles=(0.0 0.25 0.5 0.75 1.0) cstarcircles=black
cstars=(red blue green grey) wstars=(1 2 3 4);
run;

语句解释:
“Proc gradar data= scores;”指利用文件“
scores
”中的数据画雷达图,其中“gradar”
指调用画雷达图的程序;
“chart subjectfreq=score overlay=number”中“chart subject”指雷达图的坐标轴由
变量“sub ject”中数据确定;“”指后面的说明是可选项;“freq=score”指点坐标由变量
“sc ore”中数据确定;“overlay=number”指曲线的编号由变量“number”中数据确定;

1
“starcircles=(0.0 0.25 0.5 0.75 1.0) cstarcircles=black”中“starcircles”指定
雷达图中网格 的位置;“cstarcircles”指定雷达图中网格的颜色;
“cstars=(red blue green grey) wstars=(1 2 3 4)”中“cstars”指定雷达图中曲线的
颜色;“wstars”指定雷达图中曲线的宽度;

运行结果:
图1 雷达图


第1、2号学生的 曲线位于外圈,第11、12号学生的曲线位于内圈,因此1、2号学生的成
绩比11、12号学生的成 绩高;而且11、12号学生的曲线偏向一方,说明他成绩偏科。

3. 画轮廓图:

SAS程序:
Proc gplot data=scores;
axis order=
plot score*subject=numberhaxis=axis;
symbol1 color=red i=join v=star;
symbol2 color=blue i=join v=dot;
symbol3 color=green i=join v=square;
symbol4 color=grey i=join v=triangle;

2
run;

语句解释:
“Proc gplot data=scores”指利用文件“
scores
”中的数据画图;
“axis order=”指定轮廓图中轴的
次序为“politics、chinese、english、ma ths、physics”;
“plot score*subject=numberhaxis= axis;”中“plot”指调用画图程序;“score*subject
=number”指图 形的横轴为变量“subject”、纵轴为变量“score”、曲线的标号为变量“number”;
“haxis=axis”指横轴标号由“axis”定义;
“symbol1 color=red i=join v=star”指定标号为“1”的曲线的颜色为“红”;点与点的
连线是折线、点上的标号为“星号”(其中“star、
dot、square、triangle< br>”分别代表
“星号、点、正方形、三角形”)。

运行结果:

图2 轮廓图

第1、2号学生的曲线位于上方,第11、12号学生的曲线位 于下方,因此1、2号学生的成
绩比11、12号学生的成绩高;而且11、12号学生的曲线上下起伏 更大,这说明他成绩偏科。


3

高二语文必修五-为爱而活


老人与海好句-默默无闻


上海高校名单-护士长手册怎么写


线速度与角速度的关系-分手快乐歌词


函数的值域怎么求-玉净瓶怎么用


高一怎样提高数学成绩-江苏旅游景点介绍


什么学校学设计-笨的组词


什么叫分数-在职硕士英语



本文更新与2020-12-06 00:36,由作者提供,不代表本网站立场,转载请注明出处:https://www.bjmy2z.cn/gaokao/478289.html

轮廓图和雷达图的相关文章