Plots Fishery Data into Maps
FishMaps was designed to plot georeferenced fishery data (e.g. catch, effort and CPUE) into maps. This package uses the lattice levelplot to draw a level_plot _map based on latitude and longitude, with a resolution defined by the size of lat/long squares (e.g. 1x1 or 5x5 degrees). Coastlines are drawn to display the map, based on two databases: world (lower resolution) and worldHires (higher resolution), extracted from the databases of the names in maps and mapdata packages. However, none of these packages are required since the databases are incorporated inside FishMaps.
Producing this kind of maps in R
can be really straightforward, but
the difference is that FishMaps can automate this task, producing lots
of maps (e.g. from a long time series) with one command and using the
power and the cleverness of lattice graphics.
Although FishMaps was designed for fishery data, any kind of georeferenced data can be used.
Use the devtools
package (available from
CRAN) to
install automatically from the official Git repository:
library(devtools)
install_git("http://git.leg.ufpr.br/fernandomayer/FishMaps.git")
or, you can also install from the (mirrored) GitHub repository with:
install_github("fernandomayer/FishMaps")
Alternatively, download the package tarball: FishMaps_0.3.3.tar.gz and run from a UNIX terminal (make sure you are on the container file directory):
R CMD INSTALL -l /path/to/your/R/library FishMaps_0.3.3.tar.gz
Or, inside an R
session:
install.packages("FishMaps_0.3.3.tar.gz", repos = NULL,
lib.loc = "/path/to/your/R/library",
dependencies = TRUE)
Note that -l /path/to/your/R/library
in the former and lib.loc =
"/path/to/your/R/library"
in the latter are optional. Only use it if you
want to install in a personal library, other than the standard R
library.
Download Windows binary version: FishMaps_0.3.3.zip (do not unzip
it under Windows), put the file in your working directory, and from
inside R
:
install.packages("FishMaps_0.3.3.zip", repos = NULL,
dependencies = TRUE)
The reference manual in PDF can be found here: FishMaps-manual.pdf
This package is released under the GNU General Public License (GPL) v. 3.0
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.