T<- cbind(x,y,z)
Create 3 dimensional plot of the same (of all the 3 types as taught)
Commands :
3D plots:
Normal Plot: plot3d(T[, 1:3])
Colour Plot: plot3d(T[, 1:3], col = rainbow(1000))
Color Plot of spheres: plot3d(T[, 1:3], col = rainbow(1000), type = 's')
Assignment 2:
Choose 2 random variables
Create 3 plots:
1. X-Y
2. X-Y|Z (introducing a variable z and cbind it to z and y with 5 diff categories)
3. Color code and draw the graph
4. Smooth and best fit line for the curve
> qplot(x,z, alpha=I(2/10))
> qplot(x,y, color=z)
> qplot(log(x),log(y), color=z)


















