plot.localgauss: Local Gaussian correlation plot

Description Usage Arguments References See Also Examples

View source: R/localgauss.R

Description

Plots estimates of local Gaussian correlation.

Usage

1
2
3
4
5
## S3 method for class 'localgauss'
plot(x,...,plot.text=TRUE,plot.points=FALSE,tsize=3,
  lowcol="cyan",highcol="magenta",point.col="black",
  point.size=NULL,xlab="",ylab="",divergent.col.grad=T)
     

Arguments

x

S3 object of class "localgauss" produced by the localgauss-function

...

Not used.

plot.text

If TRUE, the numerical values of the estimated local correlation are added to each tile.

plot.points

If TRUE, the original observations are overlain.

tsize

The font size used if plot.text is TRUE

lowcol

The color used to indicate negative correlation of -1

highcol

The color used to indicate positive correlation of 1

point.col

The colour used for observations points if plot.points is TRUE.

point.size

The size of observations points if plot.points is TRUE.

xlab,ylab

The label of x-axis and y-axis, respectively.

divergent.col.grad

If TRUE, a divergent color gradient between lowcol and highcol with 0 as midpoint is used. If FALSE a ordinary color gradient between lowcol and highcol is used.

References

Geir Drage Berentsen, Tore Selland Kleppe, Dag Tjostheim, Introducing localgauss, an R Package for Estimating and Visualizing Local Gaussian Correlation, Journal of Statistical Software, 56(12), 1-18, 2014, (http://www.jstatsoft.org/v56/i12/). See also Tjoestheim, D. and Hufthammer K. O., Local Gaussian correlation: A new measure of dependence, Journal of Econometrics, 172(1),pages 33-48,2013, for a detailed description of local Gaussian correlation.

See Also

localgauss.

Examples

1
2
3
4
5
    x=rnorm(n=1000)
    y=x^2 + rnorm(n=1000)
    lgobj = localgauss(x,y)
    plot(lgobj)
    

localgauss documentation built on Oct. 6, 2021, 5:15 p.m.