Description Usage Arguments Details
View source: R/compareSizeFreqs.ByYear.LongFormat.R
Function to plot size frequencies by year for visual comparison.
1 2 3 4 5 6 | compareSizeFreqs.ByYear.LongFormat(dfrs = NULL, n = 1, lbls = NULL,
yCol = "year", zCol = "size", fCol = "frequency", norm = TRUE,
alternate = FALSE, ylim = NULL, zlim = NULL, flim = NULL,
samePlotScale = TRUE, vlines = c(127, 140), ltys = 1, lwd = 2,
cols = c("blue", "green", "cyan", "magenta"), alpha = 0.5,
pdfFile = NULL, plt.nc = 4, plt.nr = 5)
|
dfrs |
- list of dataframes w/ size frequencies to compare |
n |
- number of size frequency "types" to compare (ignored if dfrs is given) |
lbls |
- vector of labels for size frequency "types" to use in plot legend |
yCol |
- dataframe column name with year info |
zCol |
- dataframe column name with size info |
fCol |
- dataframe column name with frequency info |
norm |
- flag (T/F) to plot normalized size frequencies |
alternate |
- flag (T/F) to alternate positive/negative scales for frequencies |
ylim |
- range of years to plot (can be NULL) |
zlim |
- range of sizes to plot (can be NULL) |
flim |
- range for frequency scale on plot (can be NULL) |
samePlotScale |
- flag (T/F) to use same frequency scale for all plots |
vlines |
- sizes at which to plot vertical reference lines |
ltys |
- vector of line types to use to plot size freq.s |
lwd |
- line width for outlines of size freq.s |
cols |
- vector of colors to use to plot size freq.s |
alpha |
- transparency value (0-1) to use for areas |
pdfFile |
- name of output pdf file (or NULL, if none desired) |
plt.nc |
- number of columns per page in which to arrange plots for pdf output |
plt.nr |
- number of rows per page in which to arrage plots for pdf output |
Dataframes should be derived from "long" format csv files for annual size frequencies.
If 'dfrs' is NULL, then 'n' represents the number of size frequency files the user will be prompted to specify for the comparison.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.