imagesc | R Documentation |
Display image in matlab format, i.e. flip and transpose.
imagesc(G, col = grey((1:99)/100), ...)
contoursc(G, ...)
G |
Image matrix |
col |
color scale |
... |
graphical parameters |
Program flips image and transposes prior to plotting. The contour version does the same and can be used to add contours.
graphical side effects
Jonathan M. Lees<jonathan.lees@unc.edu>
mtruem=matrix(rep(0, 16*16), ncol=16,nrow=16);
mtruem[9,9]=1; mtruem[9,10]=1; mtruem[9,11]=1;
mtruem[10,9]=1; mtruem[10,11]=1;
mtruem[11,9]=1; mtruem[11,10]=1; mtruem[11,11]=1;
mtruem[2,3]=1; mtruem[2,4]=1;
mtruem[3,3]=1; mtruem[3,4]=1;
imagesc(mtruem, asp=1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.