plot_spot {tabula} | R Documentation |
Spot Plot
Description
Plots a spot matrix.
Usage
plot_spot(object, ...)
## S4 method for signature 'matrix'
plot_spot(
object,
type = c("ring", "plain"),
col = grDevices::hcl.colors(12, "YlOrBr", rev = TRUE),
diag = TRUE,
upper = TRUE,
lower = TRUE,
freq = FALSE,
margin = 1,
axes = TRUE,
legend = TRUE,
...
)
## S4 method for signature 'data.frame'
plot_spot(
object,
type = c("ring", "plain"),
col = grDevices::hcl.colors(12, "YlOrBr", rev = TRUE),
diag = TRUE,
upper = TRUE,
lower = TRUE,
freq = FALSE,
margin = 1,
axes = TRUE,
legend = TRUE,
...
)
## S4 method for signature 'dist'
plot_spot(
object,
type = c("ring", "plain"),
col = grDevices::hcl.colors(12, "YlOrBr", rev = TRUE),
diag = FALSE,
upper = FALSE,
lower = !upper,
axes = TRUE,
legend = TRUE,
...
)
Arguments
object |
A |
... |
Currently not used. |
type |
A |
col |
A vector of colors. |
diag |
A |
upper |
A |
lower |
A |
freq |
A |
margin |
An |
axes |
A |
legend |
A |
Details
The spot matrix can be considered as a variant of the Bertin diagram where the data are first transformed to relative frequencies.
Value
plot_spot()
is called for its side-effects: it results in a graphic
being displayed (invisibly returns object
).
Note
Adapted from Dan Gopstein's original idea.
Author(s)
N. Frerebeau
See Also
Other plot methods:
matrigraph()
,
plot_bertin()
,
plot_diceleraas()
,
plot_diversity
,
plot_ford()
,
plot_heatmap()
,
plot_rank()
,
plot_rarefaction
,
seriograph()
Examples
## Data from Huntley 2004, 2008
data("pueblo")
## Plot spot diagram of count data
plot_spot(pueblo, type = "ring")
plot_spot(pueblo, type = "plain")
## Plot conditional proportions
plot_spot(pueblo, freq = TRUE, margin = 1)
plot_spot(pueblo, freq = TRUE, margin = 2)