<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2314.1000" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial>Everyone,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial>I have an array of integer values which are located on a
uniform 2-D grid. I want to plot the integer values at the node locations.
The closest I have come is with the following code:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial>for (i in 1:ny) {</FONT></DIV>
<DIV><FONT face=Arial> for (j in 1:nx) {</FONT></DIV>
<DIV><FONT face=Arial> ncell <- nx*(i - 1) + j</FONT></DIV>
<DIV><FONT face=Arial> ch <-
as.character(ncount[ncell])</FONT></DIV><FONT face=Arial>
<DIV> tx <- j*dx - dx/2</DIV></FONT><FONT face=Arial>
<DIV> ty <- ny*dy - (i-1)*dy - dy/2</DIV></FONT>
<DIV><FONT face=Arial> points(tx, ty, pch = ch, col = "red", bg =
"yellow", cex = 3)</FONT></DIV>
<DIV><FONT face=Arial> }</FONT></DIV>
<DIV><FONT face=Arial>}</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial>The problem with the code above is I only get a one
character symbol at each node (e.g. n=123 gives me 1 on the screen). Is
there something wrong with my as.character or points function calls? Is
there a better way to do this?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial>Thanks in advance,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial>Joseph Hughes</FONT></DIV>
<DIV><FONT face=Arial><A
href="mailto:jdhughes99@mindspring.com">jdhughes99@mindspring.com</A></FONT></DIV>
<DIV> </DIV>
<DIV> </DIV></BODY></HTML>