sample.sites: Plot The Geographic Location of Samples

Description Usage Arguments Note Author(s) See Also Examples

Description

This function plot the number of samples collected from different locations that are close to each other. This function is similar but not the same as sample.locations and sample.map.

Usage

1
2
3
sample.sites(meta, siteID="City", marker.size="small",
             lat="Latitude", lon="Longitude", maptype="hybrid",
             zoom=5, file=NULL, ext=NULL, width=8, height=8)

Arguments

meta

the OTU table to be used.

siteID

IDs of sampling sites for each unique pair of longitude and latitude.

marker.size

maptype to use, see also get_map.

lat

latitude of each sampling location

lon

longitude of each sampling location

maptype

maptype to use, see also get_map.

zoom

map zoom, an integer from 3 (continent) to 21 (building). see also get_map.

file

the file path where the image should be created (see ?RAM.plotting).

ext

the file type to be used; one of "pdf", "png", "tiff", "bmp", "jpg", or "svg".

height

the height of the image to be created (in inches).

width

the width of the image to be created (in inches).

Note

This function is more suitable for plot sampling sites that are close to each other. If you are getting a 403/503 error, that likely means that the current map provider is currently unavailable. 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.

Author(s)

Wen Chen.

See Also

sample.locations, sample.map

Examples

1
2
3
4
5
data(meta)
## Not run: 
sample.sites(meta=meta, zoom=8)

## End(Not run)

RAM documentation built on May 2, 2019, 3:04 p.m.