plotScatter | R Documentation |
This simple function makes (and returns it as an object, it doesn't print it) a simple scatter plot (using ggplot2). The data are two layers from either one or two Field objects. Data points which appear in one Field but not the other are excluded
plotScatter(
x,
y = x,
layer.x,
layer.y = layer.x,
alpha = 1,
text.multiplier,
tolerance = NULL
)
x |
The first DGVMTools::Field or Comparison object from which the data to be plotted should be taken. |
y |
The second DGVMTools::Field or Comparison object from which the data to be plotted should be taken. Default value is x. |
layer.x |
The first layer to be plotted (taken from x) |
layer.y |
The second layer to be plotted (taken from y). Defaults to layer.x. |
alpha |
Numeric between 0 and 1 specifing the transparency of the points. Default is 1 (= fully opaque). |
text.multiplier |
A number specifying an overall multiplier for the text on the plot. Make it bigger if the text is too small on large plots and vice-versa. |
tolerance |
Numeric, passed to copyLayers. Defines how close the longitudes and latitudes of the gridcells in |
A ggplot2 object
Matthew Forrest matthew.forrest@senckenberg.de
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.