Tuesday, 8 January 2013

INTRODUCTION TO R - Lecture 1

Plot line of 1-D Array
x<-c(1,2,3)
plot(x, type="l")


Plot Histogram of 1-D Array
x<-c(1,2,3)

plot(x, type="h")


Question 1 : Plot Histogram of 1 column of NSE Data 

zcol1<-z[,3]

plot(zcol1,type="h")


Question 2 : Plot the above in Line & Point form with X axis & Y- axis and Label
plot(zcol1,type="b", main = "NSE GRAPH", xlab="Time", ylab="Value")


Question 3 : ScatterPlot of Low & High Values of NSE data
zcol1<-z[,3]

zcol2<-z[,4]
plot(zcol1,zcol2)


Question 4 : Volatility in the data





No comments:

Post a Comment