Assignment 1: 8 Jan, 2013
Question 1): Draw a Line
x<-c(1,2,3)
plot (x,,type="l")
Question 1): Draw a Line
x<-c(1,2,3)
plot (x,,type="l")
Question (1): Draw a Histogram
x<-c(1,2,3)
plot(x,type="h")
Question 2): Plot both lines and points with graph and axes names
plot(zcoll,type="b",main="nse data",xlab="time",ylab="nifty")
Question 3): Scatter plot
plot(zcoll1,zcoll,main="NSE",xlab="High",ylab="Low")
Question 4): Get maximum from "Max" column and minimum from "Min" column
> mergedata<-c(z[,3],z[,4])
> range(mergedata)
[1] 4888.20 6020.75
No comments:
Post a Comment