[GRASS-user] scatterplot: vector/point data

Blumentrath, Stefan Stefan.Blumentrath at nina.no
Wed Nov 16 14:18:54 PST 2016


Hei Humaria,

I am not aware of a GUI tool for that, sorry. But you have the full power of R  (https://cran.r-project.org/) at your fingertips:

In your GRASS console start R and then


# Load GRASS library
library("rgrass7")

# Fetch attributes
attributes <- execGRASS("v.db.select", map=’yourvectormap’, separator=’,’)
# Parse the result
con <- textConnection(attributes)
data <- read.csv(con, header=TRUE)
str(data)

#Make your plot
plot(value1 ~ value2, data=data)


See also:
https://grasswiki.osgeo.org/wiki/R_statistics/rgrass7
http://www.statmethods.net/graphs/scatterplot.html

Cheers
Stefan

From: grass-user [mailto:grass-user-bounces at lists.osgeo.org] On Behalf Of Humaira Rahman
Sent: 16. november 2016 19:34
To: grass-user at lists.osgeo.org
Subject: [GRASS-user] scatterplot: vector/point data

Hi All,
Is there any GRASS command available to draw a scatter plot from the vector (point) attribute table. There are 3 columns in the attribute table (cat, value1, value2). I need to draw a scatter plot (value1 vs value2) in GRASS.

Thanks



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20161116/505b1428/attachment.html>


More information about the grass-user mailing list