Description Usage Arguments Author(s) Examples
presents a graph for viewing the numbers of a table by square sizes.
1 2 3 |
df |
a data frame |
x |
a vector of values to position the columns |
y |
a vector of values to position the rows |
row.labels |
a character vector for the row labels |
col.labels |
a character vector for the column labels |
clabel.row |
a character size for the row labels |
clabel.col |
a character size for the column labels |
csize |
a coefficient for the square size of the values |
clegend |
a character size for the legend (if 0, no legend) |
grid |
a logical value indicating whether the grid should be plotted |
Daniel Chessel
1 2 3 4 5 6 7 8 9 10 11 12 13 | if(!adegraphicsLoaded()) {
data(olympic)
w <- olympic$tab
w <- data.frame(scale(w))
wpca <- dudi.pca(w, scann = FALSE)
par(mfrow = c(1, 3))
table.value(w, csi = 2, clabel.r = 2, clabel.c = 2)
table.value(w, y = rank(wpca$li[, 1]), x = rank(wpca$co[, 1]), csi = 2,
clabel.r = 2, clabel.c = 2)
table.value(w, y = wpca$li[, 1], x = wpca$co[, 1], csi = 2,
clabel.r = 2, clabel.c = 2)
par(mfrow = c(1, 1))
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.