granplot: Histogram with a cumulative percentage curve

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/granplot.R

Description

This function provides a histogram of the grain-size distribution with a cumulative percentage curve

Usage

1
2
3
granplot(x, xc = 1, hist = TRUE, cum = TRUE, main = "", 
			col.cum = "red", col.hist="gray", cexname=0.9,
			cexlab=1.3,decreasing=FALSE)

Arguments

x

A numeric matrix or data frame (see the shape of data(granulo))

xc

A numeric value or a numeric vector to define columns

hist

If TRUE, display a histogram; if FALSE, do not display a histogram (only for only one column)

cum

If TRUE, display a cumulative percentage curve; if FALSE do not display a cumulative percentage curve (only for only one column)

main

Add a title to the current plot

col.cum

Color in which cumulative percentage curve will be drawn

col.hist

Color in which histogram will be drawn

cexname

A numerical value giving the amount by which plotting text and symbols should be magnified relative to the default.

cexlab

A numerical value giving the amount by which axis labels should be magnified relative to the default.

decreasing

A logical value defining the order increasing or decreasing

Details

The obtained graph is the most commonly used by Sedimentologists

Value

A histogram with a cumulative percentage curve

Author(s)

Regis K. Gallon (MNHN) reg.gallon@gmail.com, Jerome Fournier (CNRS) fournier@mnhn.fr

See Also

grandistrib

Examples

1
2
3
4
5
data(granulo)
granplot(granulo,xc=1,hist=TRUE,cum=TRUE,main="Grain-size Distribution",
			col.hist="gray",col.cum="red")
      
granplot(granulo,xc=2:4,main="Grain-size Distribution")

Example output

OpenJDK 64-Bit Server VM warning: Can't detect initial thread stack location - find_vma failed
Warning message:
system call failed: Cannot allocate memory 

G2Sd documentation built on May 2, 2019, 5:08 a.m.