Hplot {VDSM} | R Documentation |
Hplot.
Description
Plotting Hplot.
Usage
Hplot(
X,
f,
p,
Anchor.model = NULL,
xlim = NULL,
ylim = NULL,
circlesize = NULL,
linewidth = NULL,
fontsize = NULL
)
Arguments
X |
A m*p matrix which contains m different p-dimensional models. All the elements are either 0 or 1. |
f |
A vector with m elements which represent each model's frequency in X. |
p |
The number of variate in the model. |
Anchor.model |
A vector containing p elements with either 1 or 0 value and must be found in X. Default is the model with the highest frequency. |
xlim |
A vector with two elements which determine the range of x-axis in the plot. |
ylim |
A vector with two elements which determine the range of y-axis in the plot. |
circlesize |
customize the size of the circle in the plot, default is 10. |
linewidth |
Customize the width of the line in the plot, default is 1. |
fontsize |
Customize the size of the font in the circles, default is 1.5. |
Value
A list with components
Hplot.info |
The table includes all the information about each group, i.e., the total possible number of models in the group and the actual existing number of model in the group. |
Hplus.histogram |
The frequency of Hamming distance plus. |
Hminus.histogram |
The frequency of Hamming distance minus. |
Examples
data(exampleX)
X=exampleX
data(examplef)
f=examplef
p=8
H_example1 = Hplot(X,f,p)
H_example2 = Hplot(X,f,p,xlim=c(0,4),ylim=c(0,2))
H_example3 = Hplot(X,f,p,xlim=c(0,4),ylim=c(0,2),circlesize=15,linewidth=2,fontsize=3)