Deducer & Out of memory error

170 views
Skip to first unread message

ftr

unread,
Jan 13, 2013, 4:06:44 PM1/13/13
to ded...@googlegroups.com
Hi,

I try to get acquainted with Deducer but I can't get it run :
package ‘JGR’ get successfully unpacked

then:

> local({pkg <- select.list(sort(.packages(all.available = TRUE)),graphics=TRUE)
+ if(nchar(pkg)) library(pkg, character.only=TRUE)})
Loading required package: rJava
Loading required package: JavaGD
Loading required package: iplots
Error : .onLoad failed in loadNamespace() for 'iplots', details:
  call: .jnew("org/rosuda/iplots/Framework")
  error: java.lang.OutOfMemoryError: unable to create new native thread
Error: package ‘iplots’ could not be loaded

How can I attack this out of memory error in windows XP professional ?

TIA
Frank

Ian Fellows

unread,
Jan 14, 2013, 12:02:43 PM1/14/13
to ded...@googlegroups.com
are you launching JGR from the launcher (JGR.exe)? If not, you need to do so.

ian

ftr

unread,
Jan 14, 2013, 4:01:20 PM1/14/13
to ded...@googlegroups.com
After another error message that the sustem can't find jri.dll - though in fact the dll resides in c:\Program Files\R\R-2.15.2\library\rJava\jri\  and in c:\Program Files\R\R-2.15.2\library\rJava\jri\i386\ -  I re-installed the latest version of R for Windows.

When double-clicking on jgr.exe the console shows up and I get a new error message "Make sure you started JGR by double clicking".

When answering Ok to the error message the console disappears.

I am somewhat puzzled.

Frank

Bruce Miller

unread,
Jan 15, 2013, 1:11:39 PM1/15/13
to ded...@googlegroups.com
Hi all,

What is the bet way to add the Geom color by option e.g. colour = Species
in plots so each point is colored different to match the Species variable?

When using GGplot this is added like this example below:

ggplot(ElSal, aes(Date, elapsed, colour = Location)) +
� geom_jitter() +
� facet_wrap(~ Species)
#adding the ylab line works.
breaks <- (1:24) * 3600
labels <- paste(c(19:23, 0:18), "00", sep = ":")
f=png(file=" El Salonl_plot.png", width = 1000, height = 600,
���� units = "px", pointsize = 8, bg = "white",
���� res = NA, restoreConsole = TRUE)

I vaguely recall there is a way in Deducer to display the actual code in the console where I could copy the plot lines and add the geom parameter� color= whatever


Tnx
Bruce

Ian Fellows

unread,
Jan 15, 2013, 1:16:44 PM1/15/13
to ded...@googlegroups.com
just add the variable to whatever geoms you are adding to the plot
(for example, geom_point has a color option.

ian

On Tue, Jan 15, 2013 at 10:11 AM, Bruce Miller <bats...@gmail.com> wrote:
> Hi all,
>
> What is the bet way to add the Geom color by option e.g. colour = Species
> in plots so each point is colored different to match the Species variable?
>
> When using GGplot this is added like this example below:
>
> ggplot(ElSal, aes(Date, elapsed, colour = Location)) +
> geom_jitter() +
> facet_wrap(~ Species)
> #adding the ylab line works.
> breaks <- (1:24) * 3600
> labels <- paste(c(19:23, 0:18), "00", sep = ":")
> f=png(file=" El Salonl_plot.png", width = 1000, height = 600,
> units = "px", pointsize = 8, bg = "white",
> res = NA, restoreConsole = TRUE)
>
> I vaguely recall there is a way in Deducer to display the actual code in the
> console where I could copy the plot lines and add the geom parameter color=
> whatever
>
>
> Tnx
> Bruce

Bruce Miller

unread,
Jan 15, 2013, 1:18:16 PM1/15/13
to ded...@googlegroups.com
Tnx!
--
Bruce W. Miller, Ph.D.
Conservation Ecologist
Neotropical Bat Projects


office details
11384 Alpine Road
Stanwood, Mi. 49346
Phone (231) 679-6059


Bruce Miller

unread,
Jan 15, 2013, 1:23:17 PM1/15/13
to ded...@googlegroups.com
Opps so where do I access that in Deducer?

On 1/15/2013 1:16 PM, Ian Fellows wrote:

Ian Fellows

unread,
Jan 15, 2013, 1:26:35 PM1/15/13
to ded...@googlegroups.com
open plot builder -> goto geom tab -> double click on geom_point.
Unless i'm misunderstanding your question.

Bruce Miller

unread,
Jan 15, 2013, 1:38:34 PM1/15/13
to ded...@googlegroups.com
Sorry must not have articulated the initial query very well sorry...

Yes I can add "A" single color for the geom point or line etc as below...


what I am after is adding the color= for geom so each variable is  a unique color as can be set directly in GGplot like this line example:


Ian Fellows

unread,
Jan 15, 2013, 1:40:18 PM1/15/13
to ded...@googlegroups.com
click the little toggle button next to colour to alternate between setting colour to a value v.s. mapping it to a variable.


ian
Deducer.JPG
Mormoopids_all.png

Bruce Miller

unread,
Jan 15, 2013, 1:50:50 PM1/15/13
to ded...@googlegroups.com
WOW...

Many thanks guess the flu at this end has clouded any clarity I may
have had...

That worked super.

Bruce

ftr

unread,
Jan 16, 2013, 3:53:32 AM1/16/13
to ded...@googlegroups.com
It would ne nice (and useful) if you start your thread with a new object and don't hijack an existing thread whose unresolved issue then disappears.

Thank you
Frank

ftr

unread,
Jan 16, 2013, 3:55:27 AM1/16/13
to ded...@googlegroups.com
I repeated the same error on a different pc.
What's wrong with :

When double-clicking on jgr.exe the console shows up and I get a new error message "Make sure you started JGR by double clicking".

??
Frank

ftr

unread,
Jan 16, 2013, 8:30:52 AM1/16/13
to ded...@googlegroups.com
This is the chain of installations on a third pc, with the same error:
1/ install R for windows
2/ install JGR by double clicking the icon
3/ get error : "Make sure you started JGR by double clicking".

The error comes up on windows xp prof as well as on vista home.

Is there anything missing ?

- Frank

Ian Fellows

unread,
Jan 16, 2013, 1:31:55 PM1/16/13
to ded...@googlegroups.com
1/ install R for windows
2/ Ensure Java is installed
3/ open R and run install.packages("JGR")
4/ start JGR by double clicking the jgr.exe


if you are still having issues. I suggest you try the JGR mailing list
at stats-ros...@listserv.uni-augsburg.de


best,
ian
Reply all
Reply to author
Forward
0 new messages