Plotting with R-extension

16 views
Skip to first unread message

Sergio Bacelar

unread,
Sep 6, 2019, 9:32:16 PM9/6/19
to netlogo-users
I had a lot of problems to plot using r:setPlotDevice from R-extension on my Mac. I
t always gives me an error concerning JavaGD. 
Anyone with the same problem? Do you think it is best simply not plotting in real-time?

fab76...@gmail.com

unread,
Sep 9, 2019, 10:57:19 AM9/9/19
to netlogo-users
what do you try?

Sergio Bacelar

unread,
Sep 9, 2019, 11:00:51 AM9/9/19
to netlogo-users

I'm running Netlogo 6.1.0 on macOS 10.14. I am trying to run plot-example1.nl from the examples of R-Extension. I have installed JavaGD. When I try to run setup I get the following error: Error during configuration of JavaGD device: org.nlogo.api.ExtensionException: Error in path package("JavaGD"). Every time Netlogo tries to run r:setPlotDevice I get this error.
I have edited user.properties file this way:

r.home=/Library/Frameworks/R.framework/Resources
jri.home.paths=/Library/Frameworks/R.framework/Versions/3.6/Resources/library/rJava/jri
r.lib.paths=/Library/Frameworks/R.framework/Versions/3.6/Resources/library
I run the same file on Linux, with the same Netlogo version, with no problem.
Reply all
Reply to author
Forward
0 new messages