Description Usage Arguments Value Examples
View source: R/fishery-class.R
This method takes a fishery
object and make useful plots for
each variables (fishing lading and fishing effort). The plots can be daily,
monthly, yearly, over the peruvian region, and for north-central and south peruvian
region. An additional plot type to graph the effort and landing at the same time
using two y-axis.
1 2 3 4 |
x |
Object of |
language |
A |
ploType |
What type of plot should be draw. Possible types are:
|
daysToPlot |
If is a daily plot by default the x-axis show the first day of a week
(1, 8, 15, 22) but could be change to show a specific day or to show the all days of the
data with |
textAxis2 |
The text of the x axis. |
textAxis4 |
The text of the y axis. |
... |
Extra arguments. |
A graph of the specified type in ploType
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | # Read a example of a data base
fisheryData = system.file("extdata", "fisheryData.csv", package = "imarpe")
# Produce a object of fishery class
landing = getFishingData(file = fisheryData, type = "fisheryinfo", varType = "landing", sp = "caballa")
class(landing)
plot(landing)
plot(landing, daysToPlot = "2", colBar = "red")
plot(landing, language= "english")
plot(landing, ploType = "plotMonthly")
plot(landing, ploType = "plotMonthly", language= "english")
plot(landing, ploType = "plotYearly")
plot(landing, ploType = "plotYearly", language= "english", colBar = "green")
plot(landing, ploType = "plotPERU")
plot(landing, ploType = "plotNC")
plot(landing, ploType = "plotS")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.