Presentation is loading. Please wait.

Presentation is loading. Please wait.

Test for R Data Processing & Graphics

Similar presentations


Presentation on theme: "Test for R Data Processing & Graphics"— Presentation transcript:

1 Test for R Data Processing & Graphics
第一題Iris (30%) (R內建資料) 1.算出iris的3個品種的4個數值欄位的平均及標準差 2.畫出3個品種分開的Sepal.Length和Petal.Length散佈圖 3.三個品種同一張的Sepal.Length和Petal.Length散佈圖 第二題USArrests (30%) (R內建資料) 1.篩選州名有New這個字的資料 2.找出Assault、 Rape、Murder三種犯罪率皆大於75%以上的州 3.畫出這幾個州3種犯罪的3D圖,最好加上urban pop的顏色條 第三題UScity.txt USair.txt (40%) (此兩個檔可從我的網頁下載) UScity.txt只有city一欄(有的城市是兩個英文字),USair.txt包括SO2(污染物) temp(華氏均溫) manu (製造工廠) popu(人口數) wind(風速) rain(雨量) raindays(雨天數)等7個欄位) 1.讀入這兩個檔 合併後寫出一個新檔 2.找出溫度為攝氏20度以上的城市資料(原溫度是華氏) 3.找出SO2最高的前10筆記錄,並畫出SO2、manu、popu的3D圖,記得標示城市名 4.畫出以SO2畫分的四格圖,每格圖的3維分別是rain temp wind ps. 請參照以下的答案及圖表交回這3題的R命令稿即可

2 第一題Iris

3 第一題Iris

4 第二題USArrests

5 第二題USArrests

6 第三題UScity.txt USair.txt

7 第三題UScity.txt USair.txt

8 第三題UScity.txt USair.txt


Download ppt "Test for R Data Processing & Graphics"

Similar presentations


Ads by Google