plot.localgauss {localgauss} | R Documentation |
Local Gaussian correlation plot
Description
Plots estimates of local Gaussian correlation.
Usage
## 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 |
... |
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 |
point.size |
The size of observations points if |
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
Examples
x=rnorm(n=1000)
y=x^2 + rnorm(n=1000)
lgobj = localgauss(x,y)
plot(lgobj)