Step 3. Make a working Arbor function - more detail

This is a detailed version of Step 3 of these instructions for making an Arbor app.

For this step you will need to use an Arbor instance that you have control over, like one that you have installed yourself. If you want to post an Arbor App on one our main AWS instances then you will need to get it working locally first and then contact us.

Open your Arbor instance and log in.

addApp1

We will create a new analysis in the collection called “functionsForArborApps,” so set Arbor to save to that collection.

addApp2

Now navigate to the “Analysis” tab.

addApp3

Create a new function called “makeSimmap-app.”

addApp4

Set the language for this function to “R.”

addApp6

Now paste the code from step 2 into that window, and press save.

addApp8

Next we need to set inputs and outputs.

addApp9

The function takes three inputs: a tree, a table, and a column for analysis.

The tree:

addApp10

The table:

addApp11

The column to analyze:

addApp12

Now, the output, an image:

addApp13

All together these make three inputs and one output:

addApp14

Test your function. You can use the data in the sampleData collection. After clicking “Setup and Run,” set the following:

addApp15

If it works you should see:

addApp16

Now move to the visualization tab and find this output:

addApp17

You should see the result:

addApp18

Now, continue with the original steps - you are ready for step 4.