Learn R Programming

complex (version 1.0.0)

cplot: Scatterplots for complex variables

Description

Function produces six scatterplots to show relations between the two complex variables x and y.

Usage

cplot(x, y, which = 1, ...)

Value

The function produces a plot and does not return any value

Arguments

x

vector of a complex variable.

y

second vector of a complex variable.

which

defines, what type of plot to produce. which=1 will produce six scatterplots, while which=2 will produce a scatterplot of data after multidimensional scaling (creating projections of complex variables to x and y axes).

...

otehr parameters passed to plot method. Works only for which=2.

Author

Ivan Svetunkov, ivan@svetunkov.ru

Details

The plots are positioned to satisfy two rules: 1. When a scatterplot for a c.r.v. is produced, the real part should be in x-axis, while the imaginary should be in the y-axis. 2. When parts of variables x and y are compared, the part for $x$ should be in x-axis, while the part for y should be in y-axis, which should the reflect the idea that x could be an explanatory variable for y.

References

  • Svetunkov, S. & Svetunkov I. (2022) Complex Autoregressions. In Press.

See Also

ccor

Examples

Run this code

# Generate random complex variables
x <- complex(real=rnorm(100,10,10), imaginary=rnorm(100,10,10))
y <- complex(real=rnorm(100,10,10), imaginary=rnorm(100,10,10))

cplot(x, y)

Run the code above in your browser using DataLab