Quotes help make search much faster. Example: "Practice Makes Perfect"

Tuesday, October 22, 2013

In R, what are the ways you can plot a matrix someMatrix?


Possible answers:

contour(someMatrix)

persp(someMatrix, expand=0.2)
//this creates a 3D-plot where the z-axis is dependent on the values of the elements of the matrix

image(someMatrix)
//this creates a heat map of the matrix, kind of a colored version of contour

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts