PlotSamplingVariables | R Documentation |
Plots a barplot for a sample quantity, illustrating the number of samples that has the sample variables in 'ReportFdaSamplingData'. If the fishery is partitioned by grouping variables a stacked barplot is produced. Total landings may be plotted on a secondary axis.
PlotSamplingVariables(
ReportFdaSamplingData,
Quantity = c("Catches", "Vessels", "WeightMeasurements", "LengthMeasurements",
"AgeReadings", "WeightOfSampledCatches"),
Landings = FALSE
)
ReportFdaSamplingData |
|
Quantity |
the sample quantity to plot for each sampling variable: "Catches", "Vessels", "WeightMeasurements", "LengthMeasurements", "AgeReadings", or "WeightOfSampledCatches" |
Landings |
if TRUE total landings in each part of the fishery ('GroupingVariables' in ReportFdaSamplingData) is plotted on a secondary axis. |
PlotSamplingVariablesData
Provide data for this plot with ReportFdaSampling
#Plot to inspect how many samples (catches) where taken for each producttype
samplingReport <- RstoxFDA::ReportFdaSampling(RstoxFDA::StoxBioticDataExample,
RstoxFDA::StoxLandingDataExample,
GroupingVariables = c("Quarter", "GearGroup"), SamplingVariables=c("sampleproducttype"))
PlotSamplingVariables(samplingReport, Quantity = "Catches", Landings = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.