Learn R Programming

DescTools (version 0.99.6)

PlotWeb: Plot a Web of Connected Points

Description

This plot can be used to graphically display a correlation matrix by using the linewidth between the nodes in proportion to the correlation of two variables. It will place the elements homogenously around a circle and draw connecting lines between the points.

Usage

PlotWeb(m, col = c("red", "blue"), lty = par("lty"), ...)

Arguments

m
a matrix with numeric values
col
the color for the connecting lines
lty
the line type for the connecting lines
...
dots are passed to plot.

See Also

PlotCorr

Examples

Run this code
m <- cor(d.pizza[,WhichNumerics(d.pizza)[-c(1:2)]], use="pairwise.complete.obs")
PlotWeb(m=m, col=c("red","blue"), main="Pizza Correlation")

Run the code above in your browser using DataLab