Description Usage Arguments References See Also Examples
Plots estimates of local Gaussian correlation.
1 2 3 4 5 |
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. |
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.
1 2 3 4 5 | x=rnorm(n=1000)
y=x^2 + rnorm(n=1000)
lgobj = localgauss(x,y)
plot(lgobj)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.