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
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
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
library(“rgrass7”)
attributes ← execGRASS(“v.db.select”, map=’yourvectormap’, separator=’,’)
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
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