lengthFrequencyPlot: Given a frequency table size, it generates a vertical array...

View source: R/lengthFrequencyPlot.R

lengthFrequencyPlotR Documentation

Given a frequency table size, it generates a vertical array of graphics for each specified category (months, latitudes, years, etc.).

Description

Given a frequency table size, it generates a vertical array of graphics for each specified category (months, latitudes, years, etc.).

Usage

lengthFrequencyPlot(
  file1,
  file2 = NULL,
  dataFactor = 1,
  newPlot = FALSE,
  profile = NULL,
  xlim = NULL,
  xInterval = 1,
  ylim = c(0, 50),
  yInterval = NULL,
  ylimList = NULL,
  yIntervalList = NULL,
  ltys1 = "solid",
  lwds1 = "1",
  col1 = "black",
  alpha1 = 1,
  ltys2 = "solid",
  lwds2 = "1",
  col2 = "blue",
  alpha2 = 1,
  juvLimit = NULL,
  juvLty = "dotted",
  juvLwd = 1,
  juvCol = "red",
  showJuv1 = TRUE,
  juvLine1 = -2,
  juvCex1 = 1,
  juvLabel1 = "juveniles_1 = ",
  showJuv2 = TRUE,
  juvLine2 = -4,
  juvCex2 = 1,
  juvLabel2 = "juveniles_2 = ",
  namesLine1 = -2,
  namesCex1 = 1,
  namesCol1 = NULL,
  showNames2 = FALSE,
  namesLine2 = -2,
  namesCex2 = 1,
  namesCol2 = NULL,
  juvAdj = 0.99,
  juvRound = 0,
  juvSide = 3,
  juvTextCol1 = NULL,
  juvTextCol2 = NULL,
  cex.axis = 1,
  cex.lab = 1,
  ylab_line = 3,
  namesAdj = 0.01,
  title_text = NULL,
  title_line = 2,
  title_cex = NULL,
  title_col = "black",
  title_font = 1,
  smooth = FALSE,
  oma = NULL,
  xlab = NULL,
  ylab = "Frecuencia (%)",
  noDataLabel = "Sin datos",
  ylabFactor = 1,
  relative = TRUE
)

Arguments

file1

Indicates the table from the main length distribution will be drawn. See details.

file2

Indicates the table from the secondary length distribution will be drawn. See details.

dataFactor

Factor that multiplies matrices 1 and 2.

newPlot

If TRUE, the plot will be opened in a new window (using x11 command).

profile

character. Indicates the profile (as an species' name) used to predine values of xlim, juvLine, xInterval and xlab.

xlim

Limits of x axis.

xInterval

Number of intervals for x axis labels.

ylim

Limits of y axis.

yInterval

Number of intervals for y axis labels.

ylimList

List of xlim value for each plot.

yIntervalList

List of yInterval value for each plot.

ltys1

lty (see par) parameter for main length distribution lines.

lwds1

lwd (see par) parameter for main length distribution lines.

col1

col (see par) parameter for main length distribution lines.

alpha1

factor modifying the opacity alpha (typically in [0,1]) for line 1.

ltys2

lty (see par) parameter for secondary length distribution lines.

lwds2

lwd (see par) parameter for secondary length distribution lines.

col2

col (see par) parameter for secondary length distribution lines.

alpha2

factor modifying the opacity alpha (typically in [0,1]) for line 2.

juvLimit

Limit length for juveniles.

juvLty

lty (see par) parameter for juvenile line.

juvLwd

lwd (see par) parameter for juvenile line.

juvCol

col (see par) parameter for juvenile line.

showJuv1

Do you want to show the percentage of juveniles 1 as text?

juvLine1

line (see mtext) parameter for juvenile 1 line.

juvCex1

Size for juveniles 1 text.

juvLabel1

Text before juvenile 1 value.

showJuv2

Do you want to show the percentage of juveniles 2 as text?

juvLine2

line (see mtext) parameter for juvenile 2 line.

juvCex2

Size for juveniles 2 text.

juvLabel2

Text before juvenile 2 value.

namesLine1

line (see mtext) parameter for text of category for file 1.

namesCex1

cex (see mtext) parameter for text of category for file 1.

namesCol1

col (see mtext) parameter for text of category for file 1.

showNames2

logical do you want to show the names of categories of file 2?

namesLine2

line (see mtext) parameter for text of category for file 2.

namesCex2

cex (see mtext) parameter for text of category for file 2.

namesCol2

col (see mtext) parameter for text of category for file 2.

juvAdj

adj (see mtext) parameter for juvenile text.

juvRound

Number of decimals places used to show juveniles' values.

juvSide

side (see mtext) parameter for juvenile text.

juvTextCol1

col (see mtext) parameter for text of juveniles for file 1.

juvTextCol2

col (see mtext) parameter for text of juveniles for file 2.

cex.axis

cex.axis (see par) parameter for x and y axes.

cex.lab

cex.lab (see par) parameter for x and y axes.

ylab_line

line (see mtext) parameter for ylab text.

namesAdj

adj (see mtext) parameter for categories (column names) text.

title_text

Text for title. If not NULL, default oma = c(5, 5, 3, 3)

title_line

line (see mtext) parameter for title text.

title_cex

Size for title text.

title_col

col (see par) parameter for title text.

title_font

font (see par) parameter for title text.

smooth

logical Do you want to smooth the length distribution lines?

oma

oma (see par) parameter for plot. Default c(5, 5, 1, 3).

xlab

Label for x axis.

ylab

Label for y axis.

noDataLabel

character. If there is no data in a column, the function will show what this parameter indicates.

ylabFactor

numeric. Value that multiplies all values in both main and secondary matrices.

relative

logical Do you want to plot relatives or absolutes values?

Details

This function takes a length frequency data and returns an stacking plot of that frequencies. smooth: logical. If TRUE, function uses an spline function to plot by categories. This function uses a data with categories at col and length at rows.


LuisLauM/ruisu documentation built on March 26, 2024, 8:23 a.m.