Learn R Programming

RAM (version 1.2.1.3)

sample.sites: Plot The Geographic Location of Samples

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

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).

See Also

sample.locations, sample.map

Examples

Run this code
data(meta)
## Not run: 
# sample.sites(meta=meta, zoom=8)
# ## End(Not run)

Run the code above in your browser using DataLab