Problem 1:
a) Create line plot
of x, where x is a variable.
Solution:
Command:
> x<-c(1,2,3)
> plot(x,type="l")
b) Create histogram of NSE data extracted from
1st October 2012 to 4th January 2013.
Solution:
Command:
>z<-read.csv(file.choose(),header=T)
>zcol1<-z[ ,3]
> plot(zcol1,type="h")
Problem 2:
Plot both lines and
points. Also name the plot, x axis and y axis
Command:
>plot(zcol1,type="b",main="NSEGraph",xlab="Time",ylab="nifty")
Problem 3:
Create scatter plot
by selecting the low values.
Command:
> zcol4<- z[,4]
> plot(zcol1,zcol4)
Problem 4:
Find the volatility
of data?





No comments:
Post a Comment