Tuesday, 8 January 2013

Analysis using "R" , ITBA Lab session 1

  For anylsis and plotting  the NSE data between  1st October 2012 & 8th January 2013 has been used.

 

Assignment 1: Plotting Histogram

Code
>x<-c(1,2,3)
>plot(x,type="h")

Histogram Plot



Assignment 2: Plotting point and line diagram 


Code:

>zcol3<-z[,3]
>plot(zcol3,type="b",main="NSE Graph",xlab="Time",ylab="Trend")
Point and Line Plot:

Assignment 3: Scatter Diagram for High and Low data

Code:
zcol4<-z[,4]
plot(zcol3,zcol4,type="b",main="NSE Graph",xlab="High",ylab="Low")
Scatter Diagram:

Assignment 4: Volatility of Max and Min of share value

Code:
>zcol3<-z[,3]
>zcol4<-z[,4]
mergeddata<-c(zcol3,zcol4)
> summary(mergeddata)
   Min. 1st Qu.  Median    Mean 3rd Qu.    Max.
   4888    5660    5723    5758    5884    6021
> range(mergeddata)
[1] 4888.20 6020.75

No comments:

Post a Comment