dir.hist: Accepts a numeric vector and writes a histogram in EPS format...

View source: R/dirfns.R

dir.histR Documentation

Accepts a numeric vector and writes a histogram in EPS format to a specified file. Allows for setting all values greater than a given quantile to the quantile value. Any folders in the path that do not exist are created.

Description

Accepts a numeric vector and writes a histogram in EPS format to a specified file. Allows for setting all values greater than a given quantile to the quantile value. Any folders in the path that do not exist are created.

Usage

dir.hist(
  x,
  file,
  breaks = "FD",
  quant = 1,
  path = ".",
  append.date = T,
  col = "gray28",
  border = F,
  main = "",
  xlab = "length (bp)",
  ...
)

Arguments

x

A numeric vector.

breaks

A breaks argument passed to hist.

quant

The maximum quantile to be plotted.

path

The path to the output file.

append.date

Whether to write the output to a directory with today's date.

...

Additional arguments to hist.

filename

The output file name.

See Also

dir.eps, hist

Examples

dir.hist(1:100,"example",path="path/to",quant=.9)
plot(1:5,1:5)
dev.off()

kewiechecki/dirfns documentation built on June 8, 2025, 5:18 a.m.