Description Usage Arguments Details See Also Examples
The function allows to group the row/column categories into k user-defined partitions.
1 | groupBycoord(data, x = 1, k = 3, which = "rows", cex.labls = 0.75)
|
data |
Name of the dataset (must be in dataframe format). |
x |
Dimension whose coordinates are used to build the partitions. |
k |
Number of groups. |
which |
Speficy if rows ("rows"; default) or columns ("cols") must be grouped. |
cex.labls |
Set the size of the labels of the dot chart (0.75 by default). |
K groups are created employing the Jenks' natural break method applied on the selected dimension's coordinates. A dot chart is returned representing the categories grouped into the selected partitions. At the bottom of the chart, the Goodness of Fit statistic is also reported. The function also returns a dataframe storing the categories' coordinates on the selected dimension and the group each category belongs to.
1 2 3 4 5 | data(greenacre_data)
#divide the row categories into 3 groups on the basis of the coordinates
#of the 1st dimension, and store the result into a 'res' object
res <- groupBycoord(greenacre_data, x=1, k=3, which="rows")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.