histAxes: Histogram axes for figures as in Figure 3 of MEE paper

View source: R/plotting.R

histAxesR Documentation

Histogram axes for figures as in Figure 3 of MEE paper

Description

Do the histogram axes in vignette MEE_reproduce_2.Rmd and later, since almost all panels will have same axes. Not very flexible, so may need histAxes2() to plot up to 10,000 (though that needs working on, or adapt this one).

Usage

histAxes(
  yBigTickLab = c(0, 2000, 4000),
  yBigTickNoLab = seq(0, 6500, 1000),
  ySmallTick = seq(0, 6500, 500),
  cexAxis = 0.9,
  xsmallticks = seq(-3.5, 0.5, 0.1),
  xbigticks = seq(-3.5, 0.5, 0.5),
  vertCol = "red",
  vertThick = 1,
  b.known = -2
)

Arguments

yBigTickLab

y-axis big ticks to label

yBigTickNoLab

y-axis big ticks to not label

ySmallTick

y-axis small ticks (unlabelled)

cexAxis

font size for axis labels, defaults are for MEE_reproduce_2.Rmd.

xsmallticks

where to put unlabelled small tick marks on x-axis

xbigticks

where to put big tick marks on x-axis

vertCol

vertCol colour of vertical line for b.known

vertThick

thickness of vertical line for b.known

b.known

known value of $b$

Value

Adds axes to existing histogram

Author(s)

Andrew Edwards


andrew-edwards/sizeSpectra documentation built on June 28, 2023, 7:09 p.m.