Description Usage Arguments Value Examples
This method takes a cpue
object and make useful plots.
The plots can be daily, monthly, yearly, over the peruvian region, and
for north-central and south peruvian region.
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 cpue class
cpue = getFishingData(file = fisheryData, type = "cpue", varType = "cpue", sp = "caballa", efforType = "capacidad_bodega")
class(cpue)
plot(cpue)
plot(cpue, daysToPlot = "1", colBar = "red")
plot(cpue, language= "english")
plot(cpue, ploType = "plotMonthly")
plot(cpue, ploType = "plotMonthly", language= "english", colBar = "green")
plot(cpue, ploType = "plotYearly")
plot(cpue, ploType = "plotYearly", colBar = "orange")
plot(cpue, ploType = "plotPERU")
plot(cpue, ploType = "plotNC")
plot(cpue, ploType = "plotS")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.