zoo_isotops: Isotopic variation on two y-columns.

View source: R/zoo_isotops.R

zoo_isotopsR Documentation

Isotopic variation on two y-columns.

Description

Compare two isotopic variations (eg O, Sr) on a two y-axis plots

Usage

zoo_isotops(
  dataDir = paste0(system.file(package = "zoowork"), "/extdata/"),
  dataFile = "C_O_Sr_etno3.txt",
  img.title = "Sheep and goat",
  iso.names = c("O", "Sr"),
  iso.colors = c("turquoise", "turquoise4"),
  iso.by.y = c(5, 2e-04),
  x.by = 5,
  stat.ci = TRUE,
  img.format = ".pdf",
  img.layout = c("grid", "align"),
  img.dim = list(grid = c(18, 16), align = c(13, 21)),
  img.units = "cm",
  col.ERJ = "ERJ",
  col.ind = "ind"
)

Arguments

dataDir

directory of the dataset

dataFile

name of the dataset

img.title

title of the output plot

iso.names

names of the isotopes.By default columns c("O", "Sr")

iso.colors

color of the isotopes. By default c("turquoise", "turquoise4")

iso.by.y

intervals on y-axis. By default c(5, .0002)

x.by

interval on x-axis. By default = 5

stat.ci

show statistics: confidence interval. Default value is TRUE

img.layout

layout for the output. By default c("grid", "align")

img.dim

dimensions for the output, Width and length. By default list(grid = c(18, 16), align = c(13, 21))

img.units

By default "cm"

col.ERJ

x-axis. By default column 'ERJ'

col.ind

group column. By default column 'ind' (individus) be removed?

Value

ggplot graphs, in grid layout or aligned vertically.

Examples

zoo_isotops()

zoo_isotops(img.layout = "align", 
            img.format = ".png",
            iso.by = c(1, .0002),
            x.by = 5)

zoo_isotops(img.layout = "grid",
            iso.colors = c("red", "blue"),
            stat.ci = FALSE,
            img.format = ".png")

zoometh/zoowork documentation built on Aug. 21, 2022, 5:11 a.m.