fousy {GCDkit}R Documentation

Plotting error bars

Description

Using the function fousy can be added error bars for the x, and or, y coordinate(s) of a binary plot.

Usage

fousy(x,y,sy,sx=0,fousek=0.05,col="black",lwd=1,figaro=TRUE)

Arguments

x, y

data points coordinates

sx, sy

one sigma errors

fousek

(optional) length of the error bars as a fraction of the FOV

col

colour

lwd

line width

figaro

logical; should the error bars also added to the Figaro template?

Details

This function plots error bars plus/minus 1 sigma. Optionally, these error bars are also added to the Figaro template of the current plot. In this case, the coordinates would be typically x.data and y.data.

Author(s)

Vojtěch Janoušek, vojtech.janousek@geology.cz

Examples

    data(sazava)
    accessVar("sazava")

    binary("SiO2","Ba",xmin=45,xmax=70,ymin=0)
    fousy(WR[,"SiO2"],WR[,"Ba"],sx=1,sy=25)

    plotDiagram("PeceTaylor",FALSE,TRUE)
    fousy(x.data,y.data,sy=0.3,fousek=FALSE)
    
    fousy(x.data,y.data,sy=0.3,fousek=0.05)
    
    fousy(x.data,y.data,sy=0.3,fousek=0.1)

    plotDiagram("DebonPQ",FALSE,TRUE)
    fousy(x.data,y.data,sx=10,sy=10,col="darkgreen",lwd=2)

[Package GCDkit version 6.1 Index]