Description Usage Arguments Details Note Author(s) See Also Examples
This function consumes an OTU table, along with its associated metadata, and plots all the samples from that data as points on a map. The size of a point indicates the number of counts collected from that sample, while the colour of the point (optionally) shows a metadata factor for that sample.
1 2 3 4 5 6 7 |
otu1 |
the OTU table to be used. |
otu2 |
the (optional) second OTU table to be used. |
meta |
the metadata table to be used. |
factor |
(optional) a named character vector of length one specifying a column from the metadata table to be used to colour the points. |
zoom |
a positive integer in the range 3-21 (if |
source |
the source to be used for the map; either " |
labels |
a character vector giving one label per OTU. |
lat.col |
the name of the column in |
long.col |
the name of the column in |
file |
the file path where the image should be created (see ?RAM.plotting). |
ext |
the file type to be used; one of |
height |
the height of the image to be created (in inches). |
width |
the width of the image to be created (in inches). |
Please note that this function is getting map information using either the Google Maps API or the OpenStreetMap API, and your usage is subject to the terms of those APIs.
If you are getting a 403/503 error, that likely means that the
current map provider is currently unavailable. This can be for
a variety of reasons: if source == "google"
, you have
likely maxed out your API call limit (this can be due to
multiple users sharing an IP address; contact your system
administrator for further details). If source == "osm"
,
the server is likely under heavy load and unable to process your
request. You can check the server load
online.
In either case, the issue will likely resolve itself. Try
calling the function again in a few hours.
If you get a warning message of the form "Removed X rows
containing missing values (geom_point).
", this means that the
current zoom level is too high to display some or all of the
points. Try using a lower value forzoom
.
Wen Chen and Joshua Simpson.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.