getsetSAGSettingsForAStock {icesSAG} | R Documentation |
Get and Set SAG Chart Settings
Description
details
Usage
getSAGSettingsForAStock(assessmentKey)
setSAGSettingForAStock(
assessmentKey,
chartKey,
settingKey,
settingValue,
copyNextYear
)
Arguments
assessmentKey |
the unique identifier of the stock assessment |
chartKey |
the type identifier of the SAG chart, e.g. 0, 1, 2, ... |
settingKey |
the type identifier of the SAG chart setting, e.g. 0, 1, 2, ... |
settingValue |
the vale of the setting |
copyNextYear |
should the settings be copied to next year (TRUE) or not (FALSE) |
Value
A data frame with SAG chart type IDs, settings IDs and setting values.
Examples
## Not run:
key <- findAssessmentKey("cod.21.1", 2017)
graphs <- getSAGGraphs(key[1])
plot(graphs)
getSAGSettingsForAStock(key [1])
chart1 <- getLandingsGraph(key [1])
setSAGSettingForAStock(key [2], 1, 1, "Catches of cod.21.1 in 2017",
FALSE)
setSAGSettingForAStock(key [2], 1, 11, 10,
FALSE)
plot(chart1)
chart2 <- getSpawningStockBiomassGraph(key [1])
plot(chart2)
setSAGSettingForAStock(key [1], 4, 1, "SSB of cod.21.1 in 2017",
FALSE)
plot(chart2)
## End(Not run)
[Package icesSAG version 1.4.1 Index]