<br><div><span class="gmail_quote">2006/10/17, Roger Bivand <<a href="mailto:Roger.Bivand@nhh.no">Roger.Bivand@nhh.no</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Tue, 17 Oct 2006, Raffaele Morelli wrote:<br><br>> Hi everybody.<br>><br>> I am running Grass6 and R start doing some simple statistical analysis.<br>> I got my vectors connected to a database through a mysql driver.
<br><br>So the point/polygon geometries are in GRASS and the attribute data is in<br>the database? R could also read the attribute tables directly, rather than<br>pulling them through GRASS, if you like, though maintaining integrity will
<br>need watching.</blockquote><div><br>Yes, attribute data are stored in a MySQL db.<br>So I can read and plot those attributes without running R inside a GRASS session. <br>Did I understand?<br>Actually I am trying spgrass6 using readVECT6, but I obtain this error
<br>Error in "row.names<-.data.frame"('*tmp*', value = NULL):<br> invalid lenght in "row.names"<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
><br>> I would like to start plotting maps with graphs on it so I need to fetch<br>> attribute data of layers and represent them as histogram or boxplot.<br>> Can you suggest me some resources?<br>><br><br>
This isn't very clear - each geometry object has a single observation on<br>each attribute field, so the histograms (for each place - point/polygon)<br>are across multiple fields? To get boxplots, see symbols(), but a good
<br>deal of massaging will need to be done to work across columns rather than<br>down them. For placing histograms, it may be you'll need to go to the<br>gridBase package, documented in Paul Murrell's R Graphics (CRC Press) and
<br>in R News October 2003, Fig. 2 is suggestive of the flexibility.</blockquote><div><br>Ok, it wasn't.<br>I would like to plot data fetched from multiple fields or from different layers. I am going to try both anyway.<br>
<br>Thanks for helping<br></div><br></div><br>