[GRASSLIST:1889] pie/bar chart of vect variables in 5.0.x

Hello,

I transfered data values of 66 plots from R to GRASS using sites.put() and
plotted their values via the v.bubble command on the background of a raster
image.
I wonder if a pie chart or bar chart is as well available this way.
I looked for d.vect.chart but that seems to be only available in >5.1.
Is it due to the limit of one variable/vector in 5.0.x?

I there a way to plot a pie/bar chart of vector values (8 variables) in 5.0.2?

thanks in advance, cheers Martin

The best way is to use the interface with R. See Marcus' short course notes for details.

Chris

On Nov 26, 2003, at 8:40 AM, Martin Wegmann wrote:

Hello,

I transfered data values of 66 plots from R to GRASS using sites.put() and
plotted their values via the v.bubble command on the background of a raster
image.
I wonder if a pie chart or bar chart is as well available this way.
I looked for d.vect.chart but that seems to be only available in >5.1.
Is it due to the limit of one variable/vector in 5.0.x?

I there a way to plot a pie/bar chart of vector values (8 variables) in 5.0.2?

thanks in advance, cheers Martin

--
Christopher J. Fonnesbeck ( c h r i s @ f o n n e s b e c k . o r g )
Georgia Cooperative Fish & Wildlife Research Unit, University of Georgia

Hello,

I suppose you mean library(GRASS), what you have to use when R shall run
inside GRASS.

My problem is not the interface with R, that works fine so far but the chart
option in GRASS 5.0.2.

I could in R do rast.get() for my rastermaps and display them in R and the
barchart wouldn't be a problem but R slows down significantly when trying to
handle a data frame of a few 100 000 values, therefore I would like to keep
the whole rastermap in GRASS and only transfer the values for the barchart
into GRASS and display the charts there.

Or I upgrade to 5.1. but as long as it is not meant for productiv use, I
prefer to keep 5.0.x.

cheers, Martin

On Wednesday 26 November 2003 16:05, Christopher Fonnesbeck wrote:

The best way is to use the interface with R. See Marcus' short course
notes for details.

Chris

On Nov 26, 2003, at 8:40 AM, Martin Wegmann wrote:
> Hello,
>
> I transfered data values of 66 plots from R to GRASS using sites.put()
> and
> plotted their values via the v.bubble command on the background of a
> raster
> image.
> I wonder if a pie chart or bar chart is as well available this way.
> I looked for d.vect.chart but that seems to be only available in >5.1.
> Is it due to the limit of one variable/vector in 5.0.x?
>
> I there a way to plot a pie/bar chart of vector values (8 variables)
> in 5.0.2?
>
> thanks in advance, cheers Martin

--
Christopher J. Fonnesbeck ( c h r i s @ f o n n e s b e c k . o r g )
Georgia Cooperative Fish & Wildlife Research Unit, University of Georgia

Or I upgrade to 5.1. but as long as it is not meant for productiv use,
I prefer to keep 5.0.x.

that doesn't mean you can't use it for production use! :wink:
nothing to be afraid of, it works. You can install both 5.0.x and
5.7 (ie 5.1) on the same machine and run each when you need it.

I transfered data values of 66 plots from R to GRASS using sites.put()
and plotted their values via the v.bubble command on the background of
a raster image.
I wonder if a pie chart or bar chart is as well available this
way. I looked for d.vect.chart but that seems to be only available
in >5.1. Is it due to the limit of one variable/vector in 5.0.x?

If you can get it into a raster layer:

d.histogram style=pie

Hamish

On Monday 01 December 2003 15:09, Hamish wrote:

> Or I upgrade to 5.1. but as long as it is not meant for productiv use,
> I prefer to keep 5.0.x.

that doesn't mean you can't use it for production use! :wink:
nothing to be afraid of, it works. You can install both 5.0.x and
5.7 (ie 5.1) on the same machine and run each when you need it.

> I transfered data values of 66 plots from R to GRASS using sites.put()
> and plotted their values via the v.bubble command on the background of
> a raster image.
> I wonder if a pie chart or bar chart is as well available this
> way. I looked for d.vect.chart but that seems to be only available
> in >5.1. Is it due to the limit of one variable/vector in 5.0.x?

If you can get it into a raster layer:

d.histogram style=pie

well, I installed 5.7 and it looks promising!

d.m does not work due to some libproj.so.0 error (I pasted it below if this
error is not kown yet) but I could get a glimbs of the new grass look (until
this nice map disappeared and left some error messages ,-) ) .

Could it be that the vector support is not implemented yet? d.vect does not
show up with vector files and doing it by command line prompts that there are
no such vectors.

but d.vect.chart ctype=bar is what I am looking for and it would be awesome to
get it running.

but great work! despite that I have to learn some new commands ,-)

regards Martin

Error in startup script: ps.map: error while loading shared libraries:
libproj.so.0: cannot open shared object file: No such file or directory
    while executing
"exec ps.map -p"
    (procedure "DmPrint::init" line 14)
    invoked from within
"DmPrint::init"
    (procedure "main" line 30)
    invoked from within
"main $argc $argv"
    (file "/usr/local/grass57-29_11_2003/etc/dm/d.m.tcl" line 785)

On Mon, 1 Dec 2003, Martin Wegmann wrote:

Error in startup script: ps.map: error while loading shared libraries:
libproj.so.0: cannot open shared object file: No such file or directory
    while executing
"exec ps.map -p"
    (procedure "DmPrint::init" line 14)
    invoked from within
"DmPrint::init"
    (procedure "main" line 30)
    invoked from within
"main $argc $argv"
    (file "/usr/local/grass57-29_11_2003/etc/dm/d.m.tcl" line 785)

Make sure your libproj.so.0 is installed in a directory your system
searches for shared libraries in, e.g. add this directory to your
LD_LIBRARY_PATH environment variable or on Linux to the list in /etc/ld.so.conf
and run ldconfig.

On Monday 01 December 2003 21:20, Paul Kelly wrote:

On Mon, 1 Dec 2003, Martin Wegmann wrote:
> Error in startup script: ps.map: error while loading shared libraries:
> libproj.so.0: cannot open shared object file: No such file or directory
> while executing
> "exec ps.map -p"
> (procedure "DmPrint::init" line 14)
> invoked from within
> "DmPrint::init"
> (procedure "main" line 30)
> invoked from within
> "main $argc $argv"
> (file "/usr/local/grass57-29_11_2003/etc/dm/d.m.tcl" line 785)

Make sure your libproj.so.0 is installed in a directory your system
searches for shared libraries in, e.g. add this directory to your
LD_LIBRARY_PATH environment variable or on Linux to the list in
/etc/ld.so.conf and run ldconfig.

wow! that looks good - nice map display handling.

the problem with libproj.so.0 worked pretty straight forward in debian
testing/unstable. installing proj and running grass57, nothing else. thanks
for the info.

cheers Martin