DescTools (version 0.99.8.1)

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"), args.legend=NULL, 
        pch = 21, pt.cex = 2, pt.col = "black", pt.bg = "darkgrey", ...)

Arguments

m
a matrix with numeric values
col
the color for the connecting lines
lty
the line type for the connecting lines
args.legend
list of additional arguments to be passed to the legend function. Use args.legend = NA if no legend should be added.
pch
the plotting symbols appearing in the plot, as a non-negative numeric vector (see points, but unlike there negative values are omitted) or a vector of 1-character strings, or one multi-character string.
pt.cex
expansion factor(s) for the points.
pt.col
the foreground color for the points, corresponding to its argument col.
pt.bg
the background color for the points, corresponding to its argument bg.
...
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 DataCamp Workspace