Marxan logo ARC CEED logo

marxanui: An R package with Marxan user interfaces


marxanui 0.1

marxanui is an R package with Marxan user interfaces for Windows, Mac and Linux.

This is only version 0.1 so there will be bugs, however improved versions will appear soon.

You can import your datasets, run Marxan, edit parameters, run parameter tests, and visualise output maps, figures, and tables.

The user interfaces are derived from marxan.io web apps, so until new documentation is available, the marxan.io user guide is a useful reference.


Installation

You'll need to install R 3.3.0 or above first which you can get here: R project website

Then download the prototype R package here: marxanui 0.1

Install the R package on your computer with a command like this:

R CMD INSTALL marxanui_0.1.tar.gz

(or install the R package from a local file on your computer with menu commands in R or R Studio)


You might also need to install R package dependencies in R like this:

install.packages("doParallel")
install.packages("foreach")
install.packages("foreign")
install.packages("gplots")
install.packages("Hmisc")
install.packages("iptools")
install.packages("labdsv")
install.packages("leaflet")
install.packages("maptools")
install.packages("PBSmapping")
install.packages("png")
install.packages("rgdal")
install.packages("rgeos")
install.packages("rhandsontable")
install.packages("rjson")
install.packages("shiny")
install.packages("shinyBS")
install.packages("sp")
install.packages("sqldf")
install.packages("vegan")
install.packages("xtable")


Launching the user interfaces from R

Load the R package:

library(marxanui)

Launch the import app to import your own data:

launch_app("import")

Launch the marxan app to run Marxan:

launch_app("marxan")

Launch the parameter testing app to do calibration of BLM and SPF, and sensitivity analysis of target:

launch_app("mxptest")

Launch the marzone app to run MarZone:

launch_app("marzone")

Launch the manage app to manage your datasets:

launch_app("manage")


Contact

Contact Matt Watts with queries about marxanui.

Please report all problems to Matt Watts so I can have an opportunity to fix them.


Sample datasets

You can use the sample datasets with marxanui. If your own dataset doesn't work, look at the sample data to see how it's formatted.


From the introduction to Marxan course

MPA activity

Tasmania activity (included with marxanui)


From the Rottnest Island and Cockburn Sound course

Marxan

Rottnest Island scenario 1

Rottnest Island scenario 3

Cockburn Sound scenario 1

Cockburn Sound scenario 2

MarZone

Rottnest Island scenario 4 (included with marxanui)

Rottnest Island scenario 5

Cockburn Sound scenario 3

Cockburn Sound scenario 4

Cockburn Sound scenario 5

Cockburn Sound scenario 6

Cockburn Sound scenario 7

Cockburn Sound scenario 8


Open source

You'll be able to find the open source code for the app here: (coming soon) marxanui on GitHub

It is released as open source under the AGPLv3GNU AFFERO GENERAL PUBLIC LICENSE VERSION 3