cplot {complex}R Documentation

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, ...)

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.

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.

Value

The function produces a plot and does not return any value

Author(s)

Ivan Svetunkov, ivan@svetunkov.ru

References

See Also

ccor

Examples


# 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)


[Package complex version 1.0.0 Index]