# lab2-answer - Sheet1 Page 1 Question#1 print Question#1...

This preview shows pages 1–2. Sign up to view the full content.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Sheet1 Page 1 ## Question #1 print('************************ Question #1 ******************************') print('Metal is primarily distributed at the area where coordinate x is between 0 and 100 and coordinate y is between 0 and 28 print('Please See code') ##Code #ws =read.table('walkerLake_sample.txt',header=TRUE) #ws[4]->yv #coord<-cbind(ws[1],ws[2]) #points.geodata(coords=coord,data=yv,pch=19,main="Primary metal concentration") #rug(yv\$Y_val) ## Question #2 print('************************ Question #2 ******************************') print('Please See code') ##Code ##Regular: #y<-ws[4]\$Y_val #hist(y,breaks=70) #rug(y) ##Density: #y<-ws[4]\$Y_val #hist(y,breaks=70,freq=F) #rug(y) ## Question #3 print('************************ Question #3 ******************************') print('Please See code') ##Code #p=(1:470)/470 #plot(sy,p,type="l") #p=((1:470)-0.5)/470 #plot(sy,p) ## Question #4 print('************************ Question #4 ******************************') print('Please See code') ##Code...
View Full Document

{[ snackBarMessage ]}

### Page1 / 3

lab2-answer - Sheet1 Page 1 Question#1 print Question#1...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online