mdcplot: Plotting Function for Moving Response and Correlation...

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

View source: R/mdcplot.R

Description

A simple plotting function for response and correlation functions derived from mdcc.

Usage

1
mdcplot(x, rescale = TRUE, ...)

Arguments

x

data.frame with coefficients derived from mdcc.

rescale

logical: should coefficients be rescaled to use full color gradient?

...

additional arguments passed to plot(...)

Details

Rescaling of coefficients results in more contrast for color palette. For comparison of absolute values (between different plots), this should be set to FALSE. Rescaling is done seperately for positive and negative values.

Previous to bootRes version 1.2.2, mdcc would return a single data.frame of coefficients, regardless if bootstrapping was enabled or not. In more recent versions, a list of data.frames is returned, containing members for coefficients and confidence intervals. The type of x is checked internally, so there is no change in the interface of mdcplot.

Value

None. Invoked for side effect (plot).

Author(s)

Christian Zang

See Also

mdcc

Examples

1
2
3
4
5
6
data(muc.clim)
data(muc.spruce)

# calculate and plot bootstrapped correlation function
mdc <- mdcc(muc.spruce, muc.clim, method = "corr")
mdcplot(mdc)

Example output

  |                                                                            
  |                                                                      |   0%
  |                                                                            
  |==                                                                    |   3%
  |                                                                            
  |====                                                                  |   6%
  |                                                                            
  |=======                                                               |   9%
  |                                                                            
  |=========                                                             |  12%
  |                                                                            
  |===========                                                           |  16%
  |                                                                            
  |=============                                                         |  19%
  |                                                                            
  |===============                                                       |  22%
  |                                                                            
  |==================                                                    |  25%
  |                                                                            
  |====================                                                  |  28%
  |                                                                            
  |======================                                                |  31%
  |                                                                            
  |========================                                              |  34%
  |                                                                            
  |==========================                                            |  38%
  |                                                                            
  |============================                                          |  41%
  |                                                                            
  |===============================                                       |  44%
  |                                                                            
  |=================================                                     |  47%
  |                                                                            
  |===================================                                   |  50%
  |                                                                            
  |=====================================                                 |  53%
  |                                                                            
  |=======================================                               |  56%
  |                                                                            
  |==========================================                            |  59%
  |                                                                            
  |============================================                          |  62%
  |                                                                            
  |==============================================                        |  66%
  |                                                                            
  |================================================                      |  69%
  |                                                                            
  |==================================================                    |  72%
  |                                                                            
  |====================================================                  |  75%
  |                                                                            
  |=======================================================               |  78%
  |                                                                            
  |=========================================================             |  81%
  |                                                                            
  |===========================================================           |  84%
  |                                                                            
  |=============================================================         |  88%
  |                                                                            
  |===============================================================       |  91%
  |                                                                            
  |==================================================================    |  94%
  |                                                                            
  |====================================================================  |  97%
  |                                                                            
  |======================================================================| 100%

bootRes documentation built on May 2, 2019, 6:47 a.m.